mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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
|
||||
|
||||
|
||||
@register.filter
|
||||
def keyvalue(dict, key):
|
||||
return dict[key]
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def authorized_owners(group):
|
||||
""" Return authorized owners """
|
||||
|
Loading…
Reference in New Issue
Block a user