2021-08-12 01:16:39 +00:00
|
|
|
from django.urls import include, path, re_path
|
2020-03-05 11:31:11 +00:00
|
|
|
|
|
|
|
from .views import (
|
|
|
|
DectExportView,
|
|
|
|
DectRegistrationCreateView,
|
|
|
|
DectRegistrationDeleteView,
|
|
|
|
DectRegistrationListView,
|
|
|
|
DectRegistrationUpdateView,
|
|
|
|
PhonebookListView,
|
|
|
|
)
|
|
|
|
|
|
|
|
app_name = "phonebook"
|
|
|
|
urlpatterns = [
|
|
|
|
path("", PhonebookListView.as_view(), name="list"),
|
|
|
|
path("csv/", DectExportView.as_view(), name="csv"),
|
|
|
|
path(
|
|
|
|
"dectregistrations/",
|
|
|
|
include(
|
|
|
|
[
|
|
|
|
path(
|
|
|
|
"", DectRegistrationListView.as_view(), name="dectregistration_list"
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"create/",
|
|
|
|
DectRegistrationCreateView.as_view(),
|
|
|
|
name="dectregistration_create",
|
|
|
|
),
|
2021-08-12 01:16:39 +00:00
|
|
|
re_path(
|
2021-08-15 16:23:13 +00:00
|
|
|
r"^(?P<dect_number>\d{4,9})/",
|
2020-03-05 11:31:11 +00:00
|
|
|
include(
|
|
|
|
[
|
|
|
|
path(
|
|
|
|
"update/",
|
|
|
|
DectRegistrationUpdateView.as_view(),
|
|
|
|
name="dectregistration_update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"delete/",
|
|
|
|
DectRegistrationDeleteView.as_view(),
|
|
|
|
name="dectregistration_delete",
|
|
|
|
),
|
|
|
|
]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]
|