Commit 22fc36b4 authored by adam's avatar adam
parents 9213a2e9 89ecfcb8
......@@ -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