Commit 10e4da25 authored by Luis García's avatar Luis García
Browse files

Add filter to poll response

parent affc92b1
......@@ -42,7 +42,7 @@ class ResponseViewSet(DestroyToInvisibleMixin, OwnerFieldMixin, ModelViewSet):
serializer_class = ResponseSerializer
#Enable filter by code
filter_backends = (DjangoFilterBackend,)
filterset_fields = ('poll','owner')
filterset_fields = ('poll','owner', 'poll__consultation')
############################################################
......
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