diff --git a/django_lostplaces/lostplaces/urls.py b/django_lostplaces/lostplaces/urls.py index 9673644..1c94d0a 100644 --- a/django_lostplaces/lostplaces/urls.py +++ b/django_lostplaces/lostplaces/urls.py @@ -19,8 +19,6 @@ from lostplaces.views import ( PlaceVisitDeleteView, PlaceImageCreateView, PlaceImageDeleteView, - PhotoAlbumCreateView, - PhotoAlbumDeleteView, ExternalLinkCreateView, ExternalLinkDeleteView, ExplorerProfileView, @@ -50,8 +48,6 @@ urlpatterns = [ path('place_image/create//', PlaceImageCreateView.as_view(), name='place_image_create'), path('place_image/delete//', PlaceImageDeleteView.as_view(), name='place_image_delete'), - path('photo_album/create//', PhotoAlbumCreateView.as_view(), name='photo_album_create'), - path('photo_album/delete//', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'), path('external_link/create//', ExternalLinkCreateView.as_view(), name='external_link_create'), path('external_link/delete//', ExternalLinkDeleteView.as_view(), name='external_link_delete') ] diff --git a/django_lostplaces/lostplaces/views/views.py b/django_lostplaces/lostplaces/views/views.py index af14d6a..f11651b 100644 --- a/django_lostplaces/lostplaces/views/views.py +++ b/django_lostplaces/lostplaces/views/views.py @@ -12,7 +12,7 @@ from django.http import HttpResponseForbidden from django.utils.translation import ugettext_lazy as _ from lostplaces.forms import SignupVoucherForm, TagSubmitForm -from lostplaces.models import Place, PhotoAlbum, ExternalLink +from lostplaces.models import Place, ExternalLink from lostplaces.views.base_views import IsAuthenticatedMixin from lostplaces.common import redirect_referer_or @@ -48,18 +48,6 @@ class HomeView(IsAuthenticatedMixin, View): } return render(self.request, 'home_unauth.html', context) -class PhotoAlbumCreateView(PlaceAssetCreateView): - model = PhotoAlbum - fields = ['url', 'label'] - template_name = 'photo_album/photo_album_create.html' - success_message = _('Photo album link submitted') - -class PhotoAlbumDeleteView(PlaceAssetDeleteView): - model = PhotoAlbum - pk_url_kwarg = 'pk' - success_message = _('Photo album link deleted') - permission_denied_messsage = _('You are not allowed to edit this photo album link') - class ExternalLinkCreateView(PlaceAssetCreateView): model = ExternalLink fields = ['url', 'label', 'linktype']