Merge pull request #1077 from SchrodingersGat/custom-tag-fix

Bug fix - re-introduce settings_value custom tag
This commit is contained in:
Oliver 2020-10-27 07:49:12 +11:00 committed by GitHub
commit 9ed787b4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,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: