fix url of redirect when add one device in a lot

This commit is contained in:
Cayo Puigdefabregas 2021-12-30 19:57:18 +01:00
parent 715702658f
commit a0ef40328a
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ class LotDeviceAddView(View):
db.session.add(lot)
db.session().final_flush()
next_url = url_for('inventory.devices.devicelist')
# next_url = url_for('inventory.devices.lot')
next_url = url_for('inventory.devices.lotdevicelist', id=lot.id)
return flask.redirect(next_url)