8 lines
115 B
Python
8 lines
115 B
Python
|
from django import template
|
||
|
|
||
|
register = template.Library()
|
||
|
|
||
|
@register.filter
|
||
|
def lookup(d, key):
|
||
|
return d[key]
|