7 lines
130 B
Python
7 lines
130 B
Python
|
from django.template.defaulttags import register
|
||
|
|
||
|
|
||
|
@register.filter
|
||
|
def get_item(dictionary, key):
|
||
|
return dictionary.get(key)
|