Fix page_obj

This commit is contained in:
Nyymix 2025-07-08 23:39:13 +03:00
parent a8b74f2dc0
commit 5f7b08f22f

View file

@ -29,6 +29,7 @@ class PhotosList(ListView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) context = super().get_context_data(**kwargs)
page_obj = context.get('page_obj')
# Canonical_url # Canonical_url
page = self.request.GET.get('page') page = self.request.GET.get('page')