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
As stated, I am adding a filter field that crosses 3 foreign keys. eg Filtering a TrainingSession object on attendees__user__roles__office
When I filter with this method I get duplicate results in my GQL response. Usually as many duplicates as there are attendees.
The obvious fix for this in Django is to add .distinct() to the queryset, but it seems overriding get_queryset, or setting the queryset value on the list object type doesn't do anything.
Any ideas?
The text was updated successfully, but these errors were encountered:
As stated, I am adding a filter field that crosses 3 foreign keys. eg Filtering a TrainingSession object on
attendees__user__roles__office
When I filter with this method I get duplicate results in my GQL response. Usually as many duplicates as there are attendees.
The obvious fix for this in Django is to add .distinct() to the queryset, but it seems overriding get_queryset, or setting the queryset value on the list object type doesn't do anything.
Any ideas?
The text was updated successfully, but these errors were encountered: