mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Allow to subscribe before subscription end
This commit is contained in:
@ -230,7 +230,7 @@ class User(AbstractBaseUser):
|
||||
|
||||
@cached_property
|
||||
def is_subscribed(self):
|
||||
s = self.subscriptions.last()
|
||||
s = self.subscriptions.filter(subscription_start__lte=timezone.now()).last()
|
||||
return s.is_valid_now() if s is not None else False
|
||||
|
||||
_club_memberships = {}
|
||||
|
Reference in New Issue
Block a user