diff --git a/common/templatetags/custom_templatetags.py b/common/templatetags/custom_templatetags.py new file mode 100644 index 0000000000000000000000000000000000000000..4b04b5c6456e08fae5c2cca82c5663a4c3fb9cf5 --- /dev/null +++ b/common/templatetags/custom_templatetags.py @@ -0,0 +1,7 @@ +from django import template + +register = template.Library() + +@register.filter +def get_item(dictionary, key): + return dictionary.get(key)