mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	Used settings for office and launderette
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user