Coverage for apis_core/uris/templatetags/uris.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-28 06:34 +0000

1from django import template 

2 

3from apis_core.uris.models import Uri 

4 

5register = template.Library() 

6 

7 

8@register.simple_tag 

9def instance_uris(instance): 

10 """ 

11 Return all URIs that point to a specific model instance 

12 """ 

13 return Uri.objects.get_for_instance(instance)