Commit ffaeb858 authored by Nicolas Joyard's avatar Nicolas Joyard

Add filter fields

parent 9895dcbe
......@@ -93,6 +93,7 @@ class ScoredVoteViewSet(viewsets.ReadOnlyModelViewSet):
queryset = ScoredVote.objects.select_related(
'representative',
'proposal',
'proposal__dossier',
'proposal__recommendation'
).filter(
proposal__recommendation__isnull=False
......@@ -105,6 +106,9 @@ class ScoredVoteViewSet(viewsets.ReadOnlyModelViewSet):
)
filter_fields = {
'representative': ['exact'],
'proposal': ['exact'],
'proposal__dossier': ['exact']
}
pagination_class = DefaultWebPagination
......
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