|
|
@ -226,7 +226,7 @@ class AnnotationList(generics.ListCreateAPIView): |
|
|
|
|
|
|
|
def perform_create(self, serializer): |
|
|
|
serializer.save(document_id=self.kwargs['doc_id'], user=self.request.user) |
|
|
|
|
|
|
|
|
|
|
|
def delete(self, request, *args, **kwargs): |
|
|
|
queryset = self.get_queryset() |
|
|
|
queryset.all().delete() |
|
|
|