GitLab
Sign in
Walenty
/
ShellValier
Back to Group
Project
Activity
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
97ac1b7c6ae6b3a33faa2a7827ae7d037ba71466
Authored by
Katarzyna Krasnowska
4 years ago
1 parent
4b71dfe7
forgot a file
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
common/templatetags/custom_templatetags.py
common/templatetags/custom_templatetags.py
0 → 100644
View file @
97ac1b7
1
+from django import template
2
+
3
+register = template.Library()
4
+
5
+@register.filter
6
+def get_item(dictionary, key):
7
+ return dictionary.get(key)
...
...