[collector views] switch some views to class-based ones
This commit is contained in:
parent
59596f3064
commit
6386d25fff
2 changed files with 17 additions and 17 deletions
|
|
@ -5,8 +5,8 @@ from . import views
|
|||
app_name = "collector"
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
path("recorded/<int:teil_id>/", views.detail, name="detail"),
|
||||
path("", views.IndexView.as_view(), name="index"),
|
||||
path("recorded/<int:pk>/", views.DetailView.as_view(), name="detail"),
|
||||
path("enter/", views.enter, name="enter"),
|
||||
path("all/", views.list_all, name="all"),
|
||||
path("all/", views.ListView.as_view(), name="all"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue