mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 19:14:35 +00:00
Add INVENTREE_BASE_URL setting
- Also adds callable validator!
This commit is contained in:
1 parent
247c4bdb4b
commit
6cc0880b4a
3 files changed
+15
-1
No files matched your search
@@ -209,6 +209,7 @@ class ReportTemplateBase(ReportBase):
|
||||
|
||||
context = self.get_context_data(request)
|
||||
|
||||
context['base_url'] = common.models.InvenTreeSetting.get_setting('INVENTREE_BASE_URL')
|
||||
context['date'] = datetime.datetime.now().date()
|
||||
context['datetime'] = datetime.datetime.now()
|
||||
context['default_page_size'] = common.models.InvenTreeSetting.get_setting('REPORT_DEFAULT_PAGE_SIZE')
|
||||
|
||||
Reference in new issue
Block a user