Changeset ac5a6c0 in tailbone


Ignore:
Timestamp:
07/03/18 18:25:34 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
3cc789d
Parents:
6febd01e
Message:

Fix batch file download link URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/batch/core.py

    r6febd01e rac5a6c0  
    13881388        else:
    13891389            f.set_readonly('filename')
    1390             f.set_renderer('filename', self.render_filename)
    1391 
    1392     def render_filename(self, batch, field):
    1393         filename = getattr(batch, field)
    1394         if not filename:
    1395             return ""
    1396         path = batch.filepath(self.rattail_config, filename=filename)
    1397         url = self.get_action_url('download', batch)
    1398         return self.render_file_field(path, url)
     1390            f.set_renderer('filename', self.render_downloadable_file)
    13991391
    14001392
Note: See TracChangeset for help on using the changeset viewer.