Coverage for apis_core/apis_relations/templatetags/apis_relations.py: 71%
7 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
1from django import template
3from apis_core.apis_relations.utils import triple_sidebar
5register = template.Library()
8@register.simple_tag(takes_context=True)
9def object_relations(context, detail=True):
10 obj = context["object"]
11 return triple_sidebar(obj, context["request"], detail)