Because * Whenever you filter by a related entity in django you'll always get duplicates in the results set so you have to add a .distinct() to the end of it This commit * Adds the necessary distinct filter to the owners queryset
This commit is contained in:
Родитель
29a2e1febe
Коммит
6d1599d72d
|
@ -234,6 +234,7 @@ class NimbusConfigurationType(graphene.ObjectType):
|
|||
return (
|
||||
get_user_model()
|
||||
.objects.filter(owned_nimbusexperiments__isnull=False)
|
||||
.distinct()
|
||||
.order_by("email")
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче