blob: 3120b8e9afc4e559abe510db330f4a0fe91abdba (
plain)
1
2
3
4
5
6
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)
|