mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Change to use settings instead of hardcoding
This commit is contained in:
parent
15e2c8c7b3
commit
bbf362691b
@ -22,6 +22,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from sith.settings import SITH_MAIN_CLUB
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
@ -344,7 +345,7 @@ class Counter(models.Model):
|
|||||||
|
|
||||||
def can_refill(self):
|
def can_refill(self):
|
||||||
is_ae_member = False
|
is_ae_member = False
|
||||||
ae = Club.objects.get(unix_name="ae")
|
ae = Club.objects.get(unix_name=SITH_MAIN_CLUB["unix_name"])
|
||||||
for barman in self.get_barmen_list():
|
for barman in self.get_barmen_list():
|
||||||
if Membership.objects.filter(club=ae, user=barman):
|
if Membership.objects.filter(club=ae, user=barman):
|
||||||
is_ae_member = True
|
is_ae_member = True
|
||||||
|
Loading…
Reference in New Issue
Block a user