Verified Commit f2666f6f authored by Alexandre | L'Sacienne's avatar Alexandre | L'Sacienne
Browse files

Replace the query by a function which already

parent b3383919
Pipeline #2505 passed with stage
in 25 minutes and 25 seconds
......@@ -347,7 +347,7 @@ class Counter(models.Model):
is_ae_member = False
ae = Club.objects.get(unix_name=SITH_MAIN_CLUB["unix_name"])
for barman in self.get_barmen_list():
if Membership.objects.filter(club=ae, user=barman):
if ae.get_membership_for(barman):
is_ae_member = True
return is_ae_member
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment