Add download path for batch master views

This commit is contained in:
Lance Edgar 2018-02-19 19:59:01 -06:00
parent 1b059c5293
commit 6ca69802f5

View file

@ -278,6 +278,9 @@ class BatchMasterView(MasterView):
return status_code_text
return render_status
def download_path(self, batch, filename):
return self.rattail_config.batch_filepath(batch.batch_key, batch.uuid, filename)
def render_user(self, batch, field):
user = getattr(batch, field)
if not user: