From 94d7e01bd51ca206fb152e1786330222e0d5c0fb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 5 Jul 2019 18:00:58 -0500 Subject: [PATCH] Add `download_path()` method for ExportMasterView default behavior isn't very smart, subclass should override as needed --- tailbone/views/exports.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailbone/views/exports.py b/tailbone/views/exports.py index 94f939b3..6c193c51 100644 --- a/tailbone/views/exports.py +++ b/tailbone/views/exports.py @@ -74,6 +74,10 @@ class ExportMasterView(MasterView): export.filename, makedirs=makedirs) + def download_path(self, export, filename): + # TODO: this assumes 'filename' default! + return self.get_file_path(export) + def configure_grid(self, g): super(ExportMasterView, self).configure_grid(g)