We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2d490 commit 9d0eadaCopy full SHA for 9d0eada
appointment/models.py
@@ -685,7 +685,7 @@ def get_appointment_date(self):
685
return self.appointment_request.date
686
687
def is_paid(self):
688
- if self.get_service_price() == 0 or self.amount_to_pay == 0:
+ if self.get_service_price() == 0 or (self.amount_to_pay is not None and self.amount_to_pay == 0):
689
return True
690
return self.paid
691
0 commit comments