Fix page_obj
This commit is contained in:
parent
a8b74f2dc0
commit
5f7b08f22f
|
|
@ -29,6 +29,7 @@ class PhotosList(ListView):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
page_obj = context.get('page_obj')
|
||||
|
||||
# Canonical_url
|
||||
page = self.request.GET.get('page')
|
||||
|
|
|
|||
Loading…
Reference in New Issue