Commit cf13dd5a authored by Benoit Alessandroni's avatar Benoit Alessandroni

Fixing filter because of review rework

parent 6816897a
......@@ -6,5 +6,5 @@ class PendingResourcesViewSet(LDPViewSet):
def get_queryset(self, *args, **kwargs):
return super().get_queryset(*args, **kwargs)\
.filter(reviews=None, language__in=self.request.user.mentor_profile.languages.all(), fields__in=self.request.user.mentor_profile.fields.all())\
.filter(review__status='pending', language__in=self.request.user.mentor_profile.languages.all(), fields__in=self.request.user.mentor_profile.fields.all())\
.exclude(submitter=self.request.user)
\ No newline at end of file
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