Added CodexView, template missing.

This commit is contained in:
Marcus Scholz 2020-09-03 00:11:08 +02:00
parent 6bf8eb7083
commit 81a5e8246a
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,8 @@ from .views import (
PlaceUpdateView, PlaceUpdateView,
PlaceDeleteView, PlaceDeleteView,
PhotoAlbumCreateView, PhotoAlbumCreateView,
PhotoAlbumDeleteView PhotoAlbumDeleteView,
CodexView
) )
urlpatterns = [ urlpatterns = [
@ -20,5 +21,6 @@ urlpatterns = [
path('photo_album/delete/<int:pk>', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'), 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/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'), path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
path('place/', PlaceListView.as_view(), name='place_list') path('place/', PlaceListView.as_view(), name='place_list'),
path('codex/', CodexView, name='codex')
] ]

View File

@ -48,3 +48,6 @@ class PhotoAlbumDeleteView(PlaceAssetDeleteView):
pk_url_kwarg = 'pk' pk_url_kwarg = 'pk'
success_message = 'Photo Album deleted' success_message = 'Photo Album deleted'
permission_denied_messsage = 'You do not have permissions to alter this photo album' permission_denied_messsage = 'You do not have permissions to alter this photo album'
def CodexView(request):
return render(request, 'codex.html')