fix render lot

This commit is contained in:
Cayo Puigdefabregas 2022-06-01 13:15:04 +02:00
parent b7eb438767
commit 1e50db9194
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class NewTransferView(GenericMixView):
new_lot_id = "{}".format(self.form.newlot.id) new_lot_id = "{}".format(self.form.newlot.id)
Lot.query.filter(Lot.id == new_lot_id).one() Lot.query.filter(Lot.id == new_lot_id).one()
messages.success('Transfer created successfully!') messages.success('Transfer created successfully!')
next_url = url_for('inventory.lotdevicelist', lot_id=new_lot_id) next_url = url_for('inventory.lotdevicelist', lot_id=str(new_lot_id))
return flask.redirect(next_url) return flask.redirect(next_url)
self.context.update({'form': self.form, 'title': self.title}) self.context.update({'form': self.form, 'title': self.title})