apps: fix wrong syntax for filtering minor accounts (#33678)
This commit is contained in:
parent
62c15348d3
commit
a2ee176a2f
|
@ -413,7 +413,7 @@ class AppConfig(django.apps.AppConfig):
|
|||
excluded = AttributeValue.objects.filter(
|
||||
attribute__name='birthdate',
|
||||
content__gt=before)
|
||||
queryset = queryset.exclude(attribute_values=excluded)
|
||||
queryset = queryset.exclude(attribute_values__in=excluded)
|
||||
queryset = queryset.filter(ou__slug='usagers')
|
||||
return queryset
|
||||
|
||||
|
|
Loading…
Reference in New Issue