Quite a silly mistake, really.
This commit is contained in:
parent
f6b7fab525
commit
d465d05d90
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue