mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix subdirectory lookup
This commit is contained in:
parent
174c4cc591
commit
865a6db828
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user