Fix bug when marking batch as executed.

Not sure why that ever worked, actually?
This commit is contained in:
Lance Edgar 2016-02-01 12:23:29 -06:00
parent bf49f30fff
commit 46c3750d38

View file

@ -700,7 +700,7 @@ class BatchCrud(BaseCrud):
else:
if result:
batch.executed = datetime.datetime.utcnow()
batch.executed_by = self.request.user
batch.executed_by = session.merge(self.request.user)
session.commit()
else:
session.rollback()