mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Replace the query by a function which already
existed
This commit is contained in:
parent
b33839191d
commit
f2666f6fb0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user