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

Add consultation filter on results

parent 664b0c8b
......@@ -121,7 +121,7 @@ class ResponseViewSet(DestroyToInvisibleMixin, OwnerFieldMixin, ModelViewSet):
serializer_class = ResponseSerializer
#Enable filter by code
filter_backends = (DjangoFilterBackend,)
filterset_fields = ('survey','owner')
filterset_fields = ('survey','owner', 'survey__consultation')
def create(self, request, *args, **kwargs):
status = StatusMethod('surveys_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