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

Add filter

parent 10e4da25
......@@ -30,7 +30,7 @@ class QuestionViewSet(DestroyToInvisibleMixin, OwnerFieldMixin, ModelViewSet):
serializer_class = QuestionSerializer
#Enable filter by code
filter_backends = (DjangoFilterBackend,)
filterset_fields = ('poll', 'type')
filterset_fields = ('poll', 'type', 'poll__consultation')
############################################################
#REST API for response
......
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