Fix subdirectory lookup

This commit is contained in:
Oliver Walters 2020-05-22 13:05:12 +10:00
parent 174c4cc591
commit 865a6db828

View File

@ -20,7 +20,7 @@ def rename_template(instance, filename):
filename = os.path.basename(filename)
return os.path.join('report', 'report_template', filename)
return os.path.join('report', 'report_template', instance.getSubdir(), filename)
class WeasyprintReportMixin(WeasyTemplateResponseMixin):