Stop passing newstyle
kwarg to Form.validate()
no longer needed
This commit is contained in:
parent
92c817dfda
commit
df93a573bf
|
@ -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(',')
|
||||
|
||||
|
|
Loading…
Reference in a new issue