Commit 89ecfcb8 authored by Rafal's avatar Rafal

repair adding messages

parent e3fc29db
......@@ -16,7 +16,7 @@ class DiscussionViewSet(viewsets.ModelViewSet):
serializer_class = DiscussionSerializer
permission_classes = (permissions.IsAuthenticatedOrReadOnly,)
@detail_route()
@detail_route(methods=['post'])
def add(self, request, pk=None):
discussion = get_object_or_404(self.queryset, pk=pk)
text = request.data.get('text')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment