Place delete
This commit is contained in:
		@@ -62,7 +62,7 @@
 | 
			
		||||
						<span class="LP-Text">{{photo_album.label}}</span>
 | 
			
		||||
					</a>
 | 
			
		||||
					{% if user == photo_album.submitted_by or user ==  place.submitted_by %}
 | 
			
		||||
					<a href="google.com" class="LP-Link LP-LinkList__ItemHover" title="Delete Photo Album">
 | 
			
		||||
					<a href="{% url 'photo_album_delete' pk=photo_album.pk%}" class="LP-Link LP-LinkList__ItemHover" title="Delete Photo Album">
 | 
			
		||||
						<div class="RV-Iconized__Container RV-Iconized__Container--small">
 | 
			
		||||
							{% icon 'trash' className="RV-Iconized__Icon" %}
 | 
			
		||||
						</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,8 @@ from .views import (
 | 
			
		||||
    PlaceCreateView,
 | 
			
		||||
    PlaceUpdateView,
 | 
			
		||||
    PlaceDeleteView,
 | 
			
		||||
	PhotoAlbumCreateView
 | 
			
		||||
	PhotoAlbumCreateView,
 | 
			
		||||
	PhotoAlbumDeleteView
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
@@ -16,6 +17,7 @@ urlpatterns = [
 | 
			
		||||
    path('place/<int:pk>/', PlaceDetailView.as_view(), name='place_detail'),
 | 
			
		||||
    path('place/create/', PlaceCreateView.as_view(), name='place_create'),
 | 
			
		||||
	path('photo_album/create/<int:place_id>', PhotoAlbumCreateView.as_view(), name='photo_album_create'),
 | 
			
		||||
	path('photo_album/delete/<int:pk>', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'),
 | 
			
		||||
    path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
 | 
			
		||||
    path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
 | 
			
		||||
    path('place/', PlaceListView.as_view(), name='place_list')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user