Code

Ticket #14504: 14504.diff

File 14504.diff, 552 bytes (added by seanbrant, 3 years ago)
Line 
1Index: django/views/generic/list.py
2===================================================================
3--- django/views/generic/list.py        (revision 14290)
4+++ django/views/generic/list.py        (working copy)
5@@ -77,7 +77,7 @@
6         """
7         Get the context for this view.
8         """
9-        queryset = kwargs.get('object_list')
10+        queryset = kwargs.pop('object_list')
11         page_size = self.get_paginate_by(queryset)
12         if page_size:
13             paginator, page, queryset, is_paginated = self.paginate_queryset(queryset, page_size)