From c3ccb8e369ba383efd1484274bb75204d010456d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Tue, 8 Jul 2025 23:42:17 +0300 Subject: [PATCH] Fix page_obj --- gallery/views/album.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery/views/album.py b/gallery/views/album.py index 7a8917a..4c80e1c 100644 --- a/gallery/views/album.py +++ b/gallery/views/album.py @@ -43,6 +43,7 @@ class AlbumsList(ListView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) + page_obj = context.get('page_obj') page = self.request.GET.get('page') if page_obj.number > 1: