diff options
Diffstat (limited to '')
-rw-r--r-- | client/templatetags/__init__.py | 0 | ||||
-rw-r--r-- | client/templatetags/app_filter.py | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/client/templatetags/__init__.py b/client/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/client/templatetags/__init__.py diff --git a/client/templatetags/app_filter.py b/client/templatetags/app_filter.py new file mode 100644 index 0000000..3120b8e --- /dev/null +++ b/client/templatetags/app_filter.py @@ -0,0 +1,7 @@ +from django import template +from client.models import KeyVal + +register = template.Library() +@register.filter(name="doc_key") +def doc_key(doc): + return KeyVal.objects.filter(container=doc)
\ No newline at end of file |