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