mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-11 13:16:09 +00:00
Fix AGAIN subscription display
This commit is contained in:
1 parent
3793321c37
commit
0ba69da3b6
1 file changed
+1
-1
+1
-1
@@ -231,7 +231,7 @@ class User(AbstractBaseUser):
|
||||
|
||||
@cached_property
|
||||
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
|
||||
|
||||
_club_memberships = {}
|
||||
|
||||
Reference in new issue
Block a user