Skip to content

Commit

Permalink
[#2134] Set project relation for document category API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed May 2, 2016
1 parent 2c7df26 commit 5cc85b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions akvo/rest/views/project_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ class ProjectDocumentCategoryViewSet(PublicProjectViewSet):
queryset = ProjectDocumentCategory.objects.all()
serializer_class = ProjectDocumentCategorySerializer
filter_fields = ('document__project', 'document', 'category', )
project_relation = 'document__project__'

0 comments on commit 5cc85b3

Please sign in to comment.