diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 4611a8f..b06800a 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 64e613b..ddeb8a3 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index ce891d1..1ca61f8 100644 --- a/core/models.py +++ b/core/models.py @@ -63,12 +63,12 @@ class Profile(models.Model): is_subscription_active = models.BooleanField(default=False) def is_expired(self): if self.subscription_plan == "NONE": + return False + if not self.is_subscription_active: return True if not self.subscription_expiry: return True return self.subscription_expiry < timezone.now().date() - - def days_until_expiry(self): if not self.subscription_expiry: return 0 delta = self.subscription_expiry - timezone.now().date() diff --git a/core/templates/core/place_bid.html b/core/templates/core/place_bid.html index 9b8001c..bb96997 100644 --- a/core/templates/core/place_bid.html +++ b/core/templates/core/place_bid.html @@ -46,6 +46,11 @@ {% trans "Owner" %}: {{ truck.owner.username }} | {% trans "Plate" %}: {{ truck.plate_no }} +