diff --git a/photologue_custom/views.py b/photologue_custom/views.py index 49301ff..33b2426 100644 --- a/photologue_custom/views.py +++ b/photologue_custom/views.py @@ -23,7 +23,8 @@ 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__slug=current_tag) + .filter(extended__tags__slug=current_tag) \ + .order_by('-extended__date_start') return context