shift-selling #1
|
@ -1,7 +1,6 @@
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
|
||||||
from .views import (
|
from .views import (
|
||||||
VillageCreateView,
|
|
||||||
VillageDeleteView,
|
VillageDeleteView,
|
||||||
VillageDetailView,
|
VillageDetailView,
|
||||||
VillageListView,
|
VillageListView,
|
||||||
|
@ -12,7 +11,7 @@ app_name = "villages"
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", VillageListView.as_view(), name="list"),
|
path("", VillageListView.as_view(), name="list"),
|
||||||
path("create/", VillageCreateView.as_view(), name="create"),
|
# path("create/", VillageCreateView.as_view(), name="create"),
|
||||||
path("<slug:slug>/delete/", VillageDeleteView.as_view(), name="delete"),
|
path("<slug:slug>/delete/", VillageDeleteView.as_view(), name="delete"),
|
||||||
path("<slug:slug>/edit/", VillageUpdateView.as_view(), name="update"),
|
path("<slug:slug>/edit/", VillageUpdateView.as_view(), name="update"),
|
||||||
path("<slug:slug>/", VillageDetailView.as_view(), name="detail"),
|
path("<slug:slug>/", VillageDetailView.as_view(), name="detail"),
|
||||||
|
|
Loading…
Reference in a new issue