Fixed a needless list() coercion in in ChangeList. Refs #10163.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c00e8d2064
commit
855a58f963
|
@ -116,7 +116,7 @@ class ChangeList(object):
|
||||||
|
|
||||||
# Get the list of objects to display on this page.
|
# Get the list of objects to display on this page.
|
||||||
if (self.show_all and can_show_all) or not multi_page:
|
if (self.show_all and can_show_all) or not multi_page:
|
||||||
result_list = list(self.query_set)
|
result_list = self.query_set._clone()
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
result_list = paginator.page(self.page_num+1).object_list
|
result_list = paginator.page(self.page_num+1).object_list
|
||||||
|
|
Loading…
Reference in New Issue