Allow former subscribers to see pictures

This commit is contained in:
Skia committed 2016-12-12 16:35:52 +01:00
1 parent 7be4f00440
commit 2919f3a133
2 files changed
+5 -3

No files matched your search

+3
View File
@@ -195,6 +195,9 @@ class User(AbstractBaseUser):
def to_dict(self):
return self.__dict__
def was_subscribed(self):
return self.subscriptions.exists()
def is_subscribed(self):
s = self.subscriptions.last()
return s.is_valid_now() if s is not None else False