from django import template
register = template.Library()
@register.filter
def index(h, key):
return h[key]