Bug fix - re-introduce settings_value custom tag

This commit is contained in:
Oliver Walters 2020-10-26 22:44:16 +11:00
parent a4f6efc05d
commit 9203f541be

View File

@ -119,6 +119,15 @@ def setting_object(key, *args, **kwargs):
return setting
@register.simple_tag()
def settings_value(key, *args, **kwargs):
"""
Return a settings value specified by the given key
"""
return InvenTreeSetting.get_setting(key)
@register.simple_tag()
def get_color_theme_css(username):
try: