Commit e250acf8 authored by Sli's avatar Sli

Used settings for office and launderette

parent 748ad1c5
Pipeline #241 failed with stage
in 8 seconds
......@@ -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
......
Markdown is supported
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