mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Fixed some mistakes
This commit is contained in:
parent
2d16b9c296
commit
748ad1c5c2
@ -234,12 +234,7 @@ class User(AbstractBaseUser):
|
||||
@property
|
||||
def is_office(self):
|
||||
from club.models import Club
|
||||
return Club.objects.filter(unix_name='laverie').first().get_membership_for(self)
|
||||
|
||||
@property
|
||||
def is_launderette(self):
|
||||
from club.models import Club
|
||||
return Club.objects.filter(unix_name='').first().get_membership_for(self)
|
||||
return Club.objects.filter(unix_name='ae').first().get_membership_for(self)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
create = False
|
||||
|
@ -59,8 +59,6 @@
|
||||
{% if user == profile or user.is_root or user.is_office %}
|
||||
{% trans subscription_end=get_subscriber(profile).subscriptions.last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}<br/>
|
||||
{% trans %}Account number: {% endtrans %}{{ profile.customer.account_id }}<br/>
|
||||
{% endif %}
|
||||
{% if user == profile or user.is_root or user.is_office or user.is_launderette %}
|
||||
{# Shows tokens bought by the user #}
|
||||
{{ show_tokens(profile) }}
|
||||
{# Shows slots took by the user #}
|
||||
|
Loading…
Reference in New Issue
Block a user