Add download path for batch master views
This commit is contained in:
parent
1b059c5293
commit
6ca69802f5
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue