mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Change is_subscriber and was_subscriber to cached_properties
This commit is contained in:
@ -347,7 +347,7 @@ class Selling(models.Model):
|
||||
self.customer.save()
|
||||
self.is_validated = True
|
||||
u = User.objects.filter(id=self.customer.user.id).first()
|
||||
if u.was_subscribed():
|
||||
if u.was_subscribed:
|
||||
if self.product and self.product.id == settings.SITH_PRODUCT_SUBSCRIPTION_ONE_SEMESTER:
|
||||
sub = Subscription(
|
||||
member=u,
|
||||
|
Reference in New Issue
Block a user