Commit 64c479a0 authored by Skia's avatar Skia 🤘
Browse files

Merge branch 'bugfix' into 'master'

Bugfix

See merge request ae/Sith!132
parents 42f8ee35 33964e0b
Pipeline #1402 passed with stage
in 7 minutes and 5 seconds
......@@ -231,8 +231,8 @@ class User(AbstractBaseUser):
@cached_property
def is_subscribed(self):
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
s = self.subscriptions.filter(subscription_start__lte=timezone.now(), subscription_end__gte=timezone.now())
return s.exists()
_club_memberships = {}
_group_names = {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment