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