mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix - re-introduce settings_value custom tag
This commit is contained in:
parent
a4f6efc05d
commit
9203f541be
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user