Commit 5e3dadb2 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Add custom templatetag for getting dict item directly by key

parent 38211b6a
......@@ -348,6 +348,7 @@ INSTALLED_APPS = [
from django import template
register = template.Library()
def get_item(dictionary, key):
return dictionary.get(key)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment