Enable users to report without sending a mail

This commit is contained in:
Alexandre Iooss 2022-03-02 21:22:44 +01:00
parent f9c33e2cad
commit 2ad0c8dbc7
5 changed files with 119 additions and 6 deletions

View file

@ -2,7 +2,7 @@ from django.urls import path, re_path
from .views import (GalleryDetailView, GalleryArchiveIndexView,
GalleryDownload, GalleryUpload, GalleryYearArchiveView,
PhotoDetailView, PhotoDeleteView, TagDetail)
PhotoDetailView, PhotoDeleteView, PhotoReportView, TagDetail)
app_name = 'photologue'
urlpatterns = [
@ -14,5 +14,6 @@ urlpatterns = [
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('photo/<int:pk>/report/', PhotoReportView.as_view(), name='pl-photo-report'),
path('upload/', GalleryUpload.as_view(), name='pl-gallery-upload'),
]