fix url of redirect when add one device in a lot
This commit is contained in:
parent
715702658f
commit
a0ef40328a
|
@ -62,8 +62,7 @@ class LotDeviceAddView(View):
|
||||||
db.session.add(lot)
|
db.session.add(lot)
|
||||||
db.session().final_flush()
|
db.session().final_flush()
|
||||||
|
|
||||||
next_url = url_for('inventory.devices.devicelist')
|
next_url = url_for('inventory.devices.lotdevicelist', id=lot.id)
|
||||||
# next_url = url_for('inventory.devices.lot')
|
|
||||||
return flask.redirect(next_url)
|
return flask.redirect(next_url)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue