Fix page_obj

This commit is contained in:
Nyymix 2025-07-08 23:42:17 +03:00
parent 5f7b08f22f
commit c3ccb8e369

View file

@ -43,6 +43,7 @@ class AlbumsList(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')
page = self.request.GET.get('page') page = self.request.GET.get('page')
if page_obj.number > 1: if page_obj.number > 1: