Fix page_obj
This commit is contained in:
parent
5f7b08f22f
commit
c3ccb8e369
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue