Skip to content

Commit de961b0

Browse files
authored
Update filters.py
1 parent c3999f1 commit de961b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

users/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def filter_by_partner_program(cls, queryset, name, value):
3838
.only("user")
3939
)
4040

41-
return queryset.filter(Q(birthday) )
41+
return queryset.filter(pk__in=[profile.user.pk for profile in profiles_qs])
4242

4343
except PartnerProgram.DoesNotExist:
4444
return User.objects.none()

0 commit comments

Comments
 (0)