@register.filter
def dict_lookup(dict, key):
    return dict.get(key)
Get an item from a dictionary.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/templatetags/hq_shared_tags.py/dict_lookup