From a0ef40328a4ad1b3a7a3dcbed7d82237f3faf2c6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 30 Dec 2021 19:57:18 +0100 Subject: [PATCH] fix url of redirect when add one device in a lot --- ereuse_devicehub/inventory/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index f6682969..ec2add39 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -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)