You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, in another part of my code, I want to use the same filter set, but I won't want to filter a queryset -- instead, I want to filter an aggregation. Is is possible to get a Q-expression from django-filter?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using django-filter to filter down querysets.
Now, in another part of my code, I want to use the same filter set, but I won't want to filter a queryset -- instead, I want to filter an aggregation. Is is possible to get a Q-expression from django-filter?
For example, say I have
and now I want to use this as an annotation. Can I do something along the lines of
Beta Was this translation helpful? Give feedback.
All reactions