Stop passing newstyle kwarg to Form.validate()

no longer needed
This commit is contained in:
Lance Edgar 2023-05-14 20:35:05 -05:00
parent 92c817dfda
commit df93a573bf

View file

@ -340,7 +340,7 @@ class ExportableInvoiceView(MasterView):
model = self.model
form = forms.Form(schema=ToggleInvoices(), request=self.request)
if not form.validate(newstyle=True):
if not form.validate():
return {'error': "Form did not validate"}
uuids = form.validated['uuids'].split(',')
@ -368,7 +368,7 @@ class ExportableInvoiceView(MasterView):
model = self.model
form = forms.Form(schema=ToggleInvoices(), request=self.request)
if not form.validate(newstyle=True):
if not form.validate():
return {'error': "Form did not validate"}
uuids = form.validated['uuids'].split(',')