Quite a silly mistake, really.

This commit is contained in:
Kumi 2021-03-24 07:43:47 +01:00
parent f6b7fab525
commit d465d05d90

View file

@ -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