membershipworks: Fix check for existing invoices in EventInvoiceForm
This commit is contained in:
parent
4d66f76a02
commit
a7e7fafedd
@ -22,7 +22,7 @@ class EventInvoiceForm(forms.Form):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def clean(self):
|
||||
if hasattr(self.event, "invoice") is not None:
|
||||
if hasattr(self.event, "invoice"):
|
||||
raise forms.ValidationError("An invoice was already created!")
|
||||
|
||||
if not self.event.ready_for_invoice:
|
||||
|
Loading…
Reference in New Issue
Block a user