Coverage for tenancy/urls.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 18:35 +0000

1from django.urls import include, path 

2 

3from utilities.urls import get_model_urls 

4 

5from . import views # noqa F401 

6 

7app_name = 'tenancy' 

8urlpatterns = [ 

9 

10 path('tenant-groups/', include(get_model_urls('tenancy', 'tenantgroup', detail=False))), 

11 path('tenant-groups/<int:pk>/', include(get_model_urls('tenancy', 'tenantgroup'))), 

12 

13 path('tenants/', include(get_model_urls('tenancy', 'tenant', detail=False))), 

14 path('tenants/<int:pk>/', include(get_model_urls('tenancy', 'tenant'))), 

15 

16 path('contact-groups/', include(get_model_urls('tenancy', 'contactgroup', detail=False))), 

17 path('contact-groups/<int:pk>/', include(get_model_urls('tenancy', 'contactgroup'))), 

18 

19 path('contact-roles/', include(get_model_urls('tenancy', 'contactrole', detail=False))), 

20 path('contact-roles/<int:pk>/', include(get_model_urls('tenancy', 'contactrole'))), 

21 

22 path('contacts/', include(get_model_urls('tenancy', 'contact', detail=False))), 

23 path('contacts/<int:pk>/', include(get_model_urls('tenancy', 'contact'))), 

24 

25 path('contact-assignments/', include(get_model_urls('tenancy', 'contactassignment', detail=False))), 

26 path('contact-assignments/<int:pk>/', include(get_model_urls('tenancy', 'contactassignment'))), 

27 

28]