From 0ba69da3b667f3d50a8a89fc567e2ed4821e30df Mon Sep 17 00:00:00 2001 From: Krophil Date: Wed, 8 Nov 2017 02:03:43 +0100 Subject: [PATCH] Fix AGAIN subscription display --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index da4a709d..7cae151b 100644 --- a/core/models.py +++ b/core/models.py @@ -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 = {}