template tag for dict-reading

This commit is contained in:
Matthias 2021-05-15 00:58:03 +02:00
parent 4ae7debb2b
commit 0c5fa57770

View File

@ -162,6 +162,11 @@ def get_color_theme_css(username):
return inventree_css_static_url
@register.filter
def keyvalue(dict, key):
return dict[key]
@register.simple_tag()
def authorized_owners(group):
""" Return authorized owners """