2019-05-26 14:38:27 +02:00
|
|
|
from django.urls import path
|
2016-07-26 14:58:37 -04:00
|
|
|
|
2018-06-20 13:52:54 -04:00
|
|
|
from extras.views import ObjectChangeLogView
|
2016-07-26 14:58:37 -04:00
|
|
|
from . import views
|
2018-06-14 16:15:14 -04:00
|
|
|
from .models import Tenant, TenantGroup
|
2016-07-26 14:58:37 -04:00
|
|
|
|
2017-04-05 14:26:33 -04:00
|
|
|
app_name = 'tenancy'
|
2016-07-26 14:58:37 -04:00
|
|
|
urlpatterns = [
|
|
|
|
|
|
|
|
# Tenant groups
|
2020-02-05 16:12:48 -05:00
|
|
|
path('tenant-groups/', views.TenantGroupListView.as_view(), name='tenantgroup_list'),
|
2020-05-21 13:59:19 -04:00
|
|
|
path('tenant-groups/add/', views.TenantGroupEditView.as_view(), name='tenantgroup_add'),
|
2020-02-05 16:12:48 -05:00
|
|
|
path('tenant-groups/import/', views.TenantGroupBulkImportView.as_view(), name='tenantgroup_import'),
|
|
|
|
path('tenant-groups/delete/', views.TenantGroupBulkDeleteView.as_view(), name='tenantgroup_bulk_delete'),
|
|
|
|
path('tenant-groups/<slug:slug>/edit/', views.TenantGroupEditView.as_view(), name='tenantgroup_edit'),
|
|
|
|
path('tenant-groups/<slug:slug>/changelog/', ObjectChangeLogView.as_view(), name='tenantgroup_changelog', kwargs={'model': TenantGroup}),
|
2016-07-26 14:58:37 -04:00
|
|
|
|
|
|
|
# Tenants
|
2020-02-05 16:12:48 -05:00
|
|
|
path('tenants/', views.TenantListView.as_view(), name='tenant_list'),
|
2020-05-21 13:59:19 -04:00
|
|
|
path('tenants/add/', views.TenantEditView.as_view(), name='tenant_add'),
|
2020-02-05 16:12:48 -05:00
|
|
|
path('tenants/import/', views.TenantBulkImportView.as_view(), name='tenant_import'),
|
|
|
|
path('tenants/edit/', views.TenantBulkEditView.as_view(), name='tenant_bulk_edit'),
|
|
|
|
path('tenants/delete/', views.TenantBulkDeleteView.as_view(), name='tenant_bulk_delete'),
|
|
|
|
path('tenants/<slug:slug>/', views.TenantView.as_view(), name='tenant'),
|
|
|
|
path('tenants/<slug:slug>/edit/', views.TenantEditView.as_view(), name='tenant_edit'),
|
|
|
|
path('tenants/<slug:slug>/delete/', views.TenantDeleteView.as_view(), name='tenant_delete'),
|
|
|
|
path('tenants/<slug:slug>/changelog/', ObjectChangeLogView.as_view(), name='tenant_changelog', kwargs={'model': Tenant}),
|
2016-07-26 14:58:37 -04:00
|
|
|
|
|
|
|
]
|