diff --git a/tailbone/views/exports.py b/tailbone/views/exports.py index 1125cde7..3d5762e3 100644 --- a/tailbone/views/exports.py +++ b/tailbone/views/exports.py @@ -133,6 +133,12 @@ class ExportMasterView(MasterView): f.append('download') f.set_renderer('download', self.render_download) + def objectify(self, form, data=None): + obj = super(ExportMasterView, self).objectify(form, data=data) + if self.creating: + obj.created_by = self.request.user + return obj + def render_download(self, export, field): path = self.get_file_path(export) text = "{} ({})".format(export.filename, self.readable_size(path))