Commits

Francesco Banconi committed 6f27339 Merge

Merge pull request #42 from jnns/patch-1

Prevent KeyError when page_template is not supplied.

  • Participants
  • Parent commits 7091dcc, 355edce

Comments (0)

Files changed (1)

File endless_pagination/views.py

         the template will be ``blog/entry_list_page.html``.
         """
         queryset = kwargs.pop('object_list')
-        page_template = kwargs.pop('page_template')
+        page_template = kwargs.pop('page_template', None)
 
         context_object_name = self.get_context_object_name(queryset)
         context = {'object_list': queryset, 'view': self}