Add edit/delete actions to the news list and detail pages
Both gated the same way editing already was: broad while a draft, editor/admin-only once published. The list's Edit link goes to the detail page rather than straight to the edit form, matching the member list's convention.
This commit is contained in:
@@ -47,6 +47,7 @@ urlpatterns = [
|
||||
path("news/new/", views.NewsCreateView.as_view(), name="news_create"),
|
||||
path("news/<uuid:pk>/", views.NewsDetailView.as_view(), name="news_detail"),
|
||||
path("news/<uuid:pk>/edit/", views.NewsUpdateView.as_view(), name="news_update"),
|
||||
path("news/<uuid:pk>/delete/", views.NewsDeleteView.as_view(), name="news_delete"),
|
||||
path("news/<uuid:pk>/publish/", views.NewsPublishView.as_view(), name="news_publish"),
|
||||
path("news/<uuid:pk>/unpublish/", views.NewsUnpublishView.as_view(), name="news_unpublish"),
|
||||
path("news/<uuid:pk>/photos/", views.NewsPhotoUploadView.as_view(), name="news_photo_upload"),
|
||||
|
||||
Reference in New Issue
Block a user