fixed Enhancement #3384
This commit is contained in:
parent
515f31c562
commit
9b6d77573f
|
@ -326,7 +326,8 @@ class NewAllocateView(NewActionView, DeviceListMix):
|
|||
messages.error('Action {} error!'.format(self.form.type.data))
|
||||
for k, v in self.form.errors.items():
|
||||
value = ';'.join(v)
|
||||
messages.error('Action Error {key}: {value}!'.format(key=k, value=value))
|
||||
key = self.form[k].label.text
|
||||
messages.error('Action Error {key}: {value}!'.format(key=key, value=value))
|
||||
next_url = self.get_next_url()
|
||||
return flask.redirect(next_url)
|
||||
|
||||
|
|
Reference in New Issue