Browse Source

Update annotations api

pull/10/head
Hironsan 6 years ago
parent
commit
4d364f9f62
2 changed files with 1 additions and 0 deletions
  1. BIN
      app/db.sqlite3
  2. 1
      app/server/api.py

BIN
app/db.sqlite3

1
app/server/api.py

@ -146,6 +146,7 @@ class AnnotationsAPI(generics.ListCreateAPIView):
project = get_object_or_404(Project, pk=self.kwargs['project_id'])
document = project.documents.get(id=self.kwargs['doc_id'])
self.queryset = document.get_annotations()
self.queryset = self.queryset.filter(user=self.request.user)
return self.queryset

Loading…
Cancel
Save