Merge branch 'bugfix' into 'master'

Fix AGAIN subscription display

See merge request ae/Sith!130
This commit is contained in:
Skia 2017-11-09 15:22:06 +01:00
commit 6ee1ee365b

View File

@ -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 = {}