template tag for dict-reading
This commit is contained in:
parent
4ae7debb2b
commit
0c5fa57770
|
|
@ -162,6 +162,11 @@ def get_color_theme_css(username):
|
||||||
return inventree_css_static_url
|
return inventree_css_static_url
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def keyvalue(dict, key):
|
||||||
|
return dict[key]
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag()
|
@register.simple_tag()
|
||||||
def authorized_owners(group):
|
def authorized_owners(group):
|
||||||
""" Return authorized owners """
|
""" Return authorized owners """
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue