mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 05:46:34 +00:00
Load default settings on InvenTree launch
This commit is contained in:
@ -6,6 +6,8 @@ from django import template
|
||||
from InvenTree import version
|
||||
from InvenTree.helpers import decimal2string
|
||||
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@ -69,3 +71,8 @@ def inventree_github_url(*args, **kwargs):
|
||||
def inventree_docs_url(*args, **kwargs):
|
||||
""" Return URL for InvenTree documenation site """
|
||||
return "https://inventree.github.io"
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def inventree_setting(key, *args, **kwargs):
|
||||
return InvenTreeSetting.get_setting(key)
|
||||
|
Reference in New Issue
Block a user