Commit 7d8200ae authored by Julien Palard's avatar Julien Palard
Browse files

I need to filter on is_valid.

parent d85c209b
......@@ -115,7 +115,7 @@ class GroupViewSet(viewsets.ModelViewSet):
class AnswerViewSet(viewsets.ModelViewSet):
permission_classes = [AnswerPermission]
queryset = Answer.objects.all()
filter_fields = ("is_corrected",)
filter_fields = ("is_corrected", "is_valid")
def get_queryset(self):
if self.request.user.is_staff:
......
Supports Markdown
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