We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4dce11 commit aab8aa6Copy full SHA for aab8aa6
api/subscriptions/views.py
@@ -94,7 +94,7 @@ def get_queryset(self):
94
# Apply manual filter for legacy_id if requested
95
filter_id = self.request.query_params.get('filter[id]')
96
if filter_id:
97
- qs = [obj for obj in qs if obj.legacy_id == filter_id]
+ qs = qs.filter(legacy_id=filter_id)
98
# convert to list comprehension because legacy_id is an annotation, not in DB
99
100
return qs
0 commit comments