mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Used settings for office and launderette
This commit is contained in:
parent
748ad1c5c2
commit
e250acf82d
@ -234,7 +234,12 @@ class User(AbstractBaseUser):
|
||||
@property
|
||||
def is_office(self):
|
||||
from club.models import Club
|
||||
return Club.objects.filter(unix_name='ae').first().get_membership_for(self)
|
||||
return Club.objects.filter(unix_name=settings.SITH_MAIN_CLUB['unix_name']).first().get_membership_for(self)
|
||||
|
||||
@property
|
||||
def is_launderette(self):
|
||||
from club.models import Club
|
||||
return Club.objects.filter(unix_name=settings.SITH_LAUNDERETTE_MANAGER['unix_name']).first().get_membership_for(self)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
create = False
|
||||
|
Loading…
Reference in New Issue
Block a user