Build an absolute URL for abuse reports

This commit is contained in:
Alexandre Iooss 2022-03-02 21:45:58 +01:00
parent 350ab12fc4
commit f48f9b00e9

View file

@ -87,6 +87,7 @@ class PhotoReportView(LoginRequiredMixin, DetailView):
if not gallery_slug: if not gallery_slug:
url = reverse_lazy("photologue:pl-gallery-archive") url = reverse_lazy("photologue:pl-gallery-archive")
url = reverse_lazy("photologue:pl-gallery", args=[gallery_slug]) url = reverse_lazy("photologue:pl-gallery", args=[gallery_slug])
url = request.build_absolute_uri(url)
# Send mail to managers # Send mail to managers
mail_managers( mail_managers(