Coverage for apis_core/relations/urls.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-22 07:51 +0000

1from django.urls import path 

2 

3from apis_core.relations.views import CreateRelation, CreateRelationForm, ListRelations 

4 

5app_name = "relations" 

6 

7urlpatterns = [ 

8 path( 

9 "<contenttype:contenttype>/create", 

10 CreateRelation.as_view(), 

11 name="create_relation", 

12 ), 

13 path( 

14 "<contenttype:contenttype>/form", 

15 CreateRelationForm.as_view(), 

16 name="create_relation_form", 

17 ), 

18 path( 

19 "<contenttype:target_contenttype>/list/<contenttype:object_contenttype>/<int:object_id>", 

20 ListRelations.as_view(), 

21 name="list_relations", 

22 ), 

23]