From a170e12c1ce2b8eda65e077676e80c1258b1cc7d Mon Sep 17 00:00:00 2001 From: loulous27 Date: Thu, 4 Dec 2025 01:26:36 +0100 Subject: [PATCH] Correction --- photologue/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photologue/views.py b/photologue/views.py index 094ef7c..d78afb8 100644 --- a/photologue/views.py +++ b/photologue/views.py @@ -165,7 +165,7 @@ class GalleryDetailView(LoginRequiredMixin, DetailView): #Increment the photo view count - context["photos"].update(increment_count=F('increment_count') + 1) + context["photos"].update(view_count=F('view_count') + 1) return context