Skip to content
Snippets Groups Projects
Commit cc20fdab authored by Chif Gergő's avatar Chif Gergő
Browse files

Fix note filter bug

parent 12ff1915
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@ class NoteViewSet(viewsets.ModelViewSet):
profile_id = self.request.query_params.get('profileID', None)
event_id = self.request.query_params.get('eventID', None)
if profile_id is not None and event_id is not None:
return queryset.filter(user=profile_id, event=event_id)
return queryset.filter(profile=profile_id, event=event_id)
if profile_id is not None:
return queryset.filter(user=profile_id)
return queryset.filter(profile=profile_id)
if event_id is not None:
return queryset.filter(event=event_id)
return queryset
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment