adding deltatime in allocate form

This commit is contained in:
Cayo Puigdefabregas 2022-01-11 10:32:04 +01:00
parent 5eb8a5a4b9
commit 8303054706
1 changed files with 2 additions and 2 deletions

View File

@ -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()