Get rid of newstyle
flag for Form.validate()
method
we always/only use "new style" now
This commit is contained in:
parent
a991dc0684
commit
85947878c4
17 changed files with 75 additions and 72 deletions
|
@ -225,7 +225,7 @@ class CostingBatchView(PurchasingBatchView):
|
|||
|
||||
# if form validates, that means user has chosen a creation type, so we
|
||||
# just redirect to the appropriate "new batch of type X" page
|
||||
if form.validate(newstyle=True):
|
||||
if form.validate():
|
||||
workflow_key = form.validated['workflow']
|
||||
vendor_uuid = form.validated['vendor']
|
||||
url = self.request.route_url('{}.create_workflow'.format(route_prefix),
|
||||
|
|
|
@ -358,7 +358,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
|
||||
# if form validates, that means user has chosen a creation type, so we
|
||||
# just redirect to the appropriate "new batch of type X" page
|
||||
if form.validate(newstyle=True):
|
||||
if form.validate():
|
||||
workflow_key = form.validated['workflow']
|
||||
vendor_uuid = form.validated['vendor']
|
||||
url = self.request.route_url('{}.create_workflow'.format(route_prefix),
|
||||
|
@ -1196,7 +1196,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
# TODO: what is this one about again?
|
||||
form.remove_field('quick_receive')
|
||||
|
||||
if form.validate(newstyle=True):
|
||||
if form.validate():
|
||||
|
||||
# handler takes care of the row receiving logic for us
|
||||
kwargs = dict(form.validated)
|
||||
|
@ -1382,7 +1382,7 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
# expiration_date
|
||||
form.set_type('expiration_date', 'date_jquery')
|
||||
|
||||
if form.validate(newstyle=True):
|
||||
if form.validate():
|
||||
|
||||
# handler takes care of the row receiving logic for us
|
||||
kwargs = dict(form.validated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue