Maintenance will be performed on,,, and tomorrow, 2020/09/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

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