Add delete photo view
This commit is contained in:
parent
f17adbb2ed
commit
f9c33e2cad
3 changed files with 39 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ from django.urls import path, re_path
|
|||
|
||||
from .views import (GalleryDetailView, GalleryArchiveIndexView,
|
||||
GalleryDownload, GalleryUpload, GalleryYearArchiveView,
|
||||
PhotoDetailView, TagDetail)
|
||||
PhotoDetailView, PhotoDeleteView, TagDetail)
|
||||
|
||||
app_name = 'photologue'
|
||||
urlpatterns = [
|
||||
|
|
@ -13,5 +13,6 @@ urlpatterns = [
|
|||
path('gallery/<slug:slug>/<int:owner>/', GalleryDetailView.as_view(), name='pl-gallery-owner'),
|
||||
path('gallery/<slug:slug>/download/', GalleryDownload.as_view(), name='pl-gallery-download'),
|
||||
path('photo/<int:pk>/', PhotoDetailView.as_view(), name='pl-photo'),
|
||||
path('photo/<int:pk>/delete/', PhotoDeleteView.as_view(), name='pl-photo-delete'),
|
||||
path('upload/', GalleryUpload.as_view(), name='pl-gallery-upload'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue