diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index e8e84353..a7d9c9ad 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -926,8 +926,9 @@ class BatchMasterView(MasterView): # mustn't use tailbone web session here session = RattailSession() batch = session.query(self.model_class).get(batch_uuid) + user = session.query(model.User).get(user_uuid) try: - self.handler.do_populate(batch, progress=progress) + self.handler.do_populate(batch, user, progress=progress) except Exception as error: session.rollback() log.warning("batch population failed: %s", batch, exc_info=True)