@register.filter
def get_item(dictionary, key):  # pragma: no cover
    return dictionary.get(key)
Needed because there's no built in .get in django templates
dataset/ETHPy150Open Nikola-K/django_reddit/reddit/views.py/get_item