mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-29 12:34:21 +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
|
@property
|
||||||
def is_office(self):
|
def is_office(self):
|
||||||
from club.models import Club
|
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):
|
def save(self, *args, **kwargs):
|
||||||
create = False
|
create = False
|
||||||
|
Loading…
Reference in New Issue
Block a user