2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

[FR] White labeling

Fixes #2301
This commit is contained in:
Matthias
2022-04-23 23:38:49 +02:00
parent adfcd42e09
commit 7834171c2a
4 changed files with 23 additions and 8 deletions

View File

@ -509,6 +509,13 @@ def mail_configured():
return bool(settings.EMAIL_HOST)
@register.simple_tag()
def inventree_customize(reference, *args, **kwargs):
""" Return customization values for the user interface """
return djangosettings.CUSTOMIZE.get(reference, '')
class I18nStaticNode(StaticNode):
"""
custom StaticNode