mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 18:53:25 +00:00
Fix AGAIN subscription display
This commit is contained in:
parent
3793321c37
commit
0ba69da3b6
@ -231,7 +231,7 @@ class User(AbstractBaseUser):
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def is_subscribed(self):
|
def is_subscribed(self):
|
||||||
s = self.subscriptions.filter(subscription_start__lte=timezone.now()).last()
|
s = self.subscriptions.filter(subscription_start__lte=timezone.now()).order_by('subscription_end').last()
|
||||||
return s.is_valid_now() if s is not None else False
|
return s.is_valid_now() if s is not None else False
|
||||||
|
|
||||||
_club_memberships = {}
|
_club_memberships = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user