From 5985b39ed8ddc3ebd94d91736144d0aa5761b984 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 13 Oct 2021 14:19:04 +0200 Subject: [PATCH] Fix tag display page --- photologue_custom/templates/photologue/gallery_detail.html | 2 +- photologue_custom/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/photologue_custom/templates/photologue/gallery_detail.html b/photologue_custom/templates/photologue/gallery_detail.html index 182b8e0..8c8692d 100644 --- a/photologue_custom/templates/photologue/gallery_detail.html +++ b/photologue_custom/templates/photologue/gallery_detail.html @@ -26,7 +26,7 @@ {% if gallery.extended.tags.all %}

Tags : {% for tag in gallery.extended.tags.all %} - {{ tag }} + {{ tag }} {% endfor %}

{% endif %} diff --git a/photologue_custom/views.py b/photologue_custom/views.py index 285ae5e..0a29748 100644 --- a/photologue_custom/views.py +++ b/photologue_custom/views.py @@ -23,7 +23,7 @@ class TagDetail(LoginRequiredMixin, DetailView): current_tag = self.get_object().slug context = super().get_context_data(**kwargs) context['galleries'] = Gallery.objects.on_site().is_public() \ - .filter(extended__tags__name=current_tag) + .filter(extended__tags__slug=current_tag) return context