diff --git a/auction/models.py b/auction/models.py index 4f7eb05..0514c43 100644 --- a/auction/models.py +++ b/auction/models.py @@ -17,10 +17,10 @@ class Inquiry(models.Model): @property def is_paid(self): - if not inquiry.invoice: + if not self.invoice: return False - return inquiry.invoice.is_paid + return self.invoice.is_paid def get_hotels(self): pass