Add flash message when any batch executes successfully.
This commit is contained in:
parent
a79c89b470
commit
0c4ceefa2c
|
@ -583,6 +583,7 @@ class BatchCrud(BaseCrud):
|
||||||
if self.handler.execute(batch):
|
if self.handler.execute(batch):
|
||||||
batch.executed = datetime.datetime.utcnow()
|
batch.executed = datetime.datetime.utcnow()
|
||||||
batch.executed_by = self.request.user
|
batch.executed_by = self.request.user
|
||||||
|
self.request.session.flash("Batch was executed successfully.")
|
||||||
return HTTPFound(location=self.view_url(batch.uuid))
|
return HTTPFound(location=self.view_url(batch.uuid))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue