Coverage for tenancy/urls.py: 100%
5 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.urls import include, path
3from utilities.urls import get_model_urls
5from . import views # noqa F401
7app_name = 'tenancy'
8urlpatterns = [
10 path('tenant-groups/', include(get_model_urls('tenancy', 'tenantgroup', detail=False))),
11 path('tenant-groups/<int:pk>/', include(get_model_urls('tenancy', 'tenantgroup'))),
13 path('tenants/', include(get_model_urls('tenancy', 'tenant', detail=False))),
14 path('tenants/<int:pk>/', include(get_model_urls('tenancy', 'tenant'))),
16 path('contact-groups/', include(get_model_urls('tenancy', 'contactgroup', detail=False))),
17 path('contact-groups/<int:pk>/', include(get_model_urls('tenancy', 'contactgroup'))),
19 path('contact-roles/', include(get_model_urls('tenancy', 'contactrole', detail=False))),
20 path('contact-roles/<int:pk>/', include(get_model_urls('tenancy', 'contactrole'))),
22 path('contacts/', include(get_model_urls('tenancy', 'contact', detail=False))),
23 path('contacts/<int:pk>/', include(get_model_urls('tenancy', 'contact'))),
25 path('contact-assignments/', include(get_model_urls('tenancy', 'contactassignment', detail=False))),
26 path('contact-assignments/<int:pk>/', include(get_model_urls('tenancy', 'contactassignment'))),
28]