From 830305470640102261b5edba1cd3411b1f7186d7 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 11 Jan 2022 10:32:04 +0100 Subject: [PATCH] adding deltatime in allocate form --- ereuse_devicehub/inventory/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 5f73bd0b..26a8063d 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -32,7 +32,7 @@ class DeviceListView(View): form_new_action = NewActionForm() allocate = AllocateForm(start_time=datetime.datetime.now(), - end_time=datetime.datetime.now()) + end_time=datetime.datetime.now()+datetime.timedelta(1)) context = {'devices': devices, 'lots': lots, @@ -110,7 +110,7 @@ class NewActionView(View): def dispatch_request(self): form = NewActionForm() - # import pdb; pdb.set_trace() + import pdb; pdb.set_trace() next_url = url_for('inventory.devices.devicelist') if form.validate_on_submit(): # form.save()