From d465d05d90e52efc295b3c629e389fef49f58eed Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 24 Mar 2021 07:43:47 +0100 Subject: [PATCH] Quite a silly mistake, really. --- auction/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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