From 5f33ec5824be45be14a26f12c7c217f756703bad Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 26 Sep 2020 16:08:56 +0200 Subject: [PATCH] Deletion of place images --- .../lostplaces/templates/place/place_detail.html | 16 +++++++++++++++- django_lostplaces/lostplaces/urls.py | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/templates/place/place_detail.html b/django_lostplaces/lostplaces/templates/place/place_detail.html index b471dd5..fdf656a 100644 --- a/django_lostplaces/lostplaces/templates/place/place_detail.html +++ b/django_lostplaces/lostplaces/templates/place/place_detail.html @@ -94,9 +94,23 @@ diff --git a/django_lostplaces/lostplaces/urls.py b/django_lostplaces/lostplaces/urls.py index 0a00914..9c686ef 100644 --- a/django_lostplaces/lostplaces/urls.py +++ b/django_lostplaces/lostplaces/urls.py @@ -14,6 +14,7 @@ from lostplaces.views import ( PhotoAlbumCreateView, PhotoAlbumDeleteView, PlaceImageCreateView, + PlaceImageDeleteView, FlatView ) @@ -27,6 +28,7 @@ urlpatterns = [ path('place/delete//', PlaceDeleteView.as_view(), name='place_delete'), path('place/', PlaceListView.as_view(), name='place_list'), path('place_image/create/', PlaceImageCreateView.as_view(), name='place_image_create'), + path('place_image/delete/', PlaceImageDeleteView.as_view(), name='place_image_delete'), path('flat//', FlatView, name='flatpage'), # POST-only URLs for tag submission