1
0
mirror of https://github.com/django/django.git synced 2025-07-18 08:39:15 +00:00

[1.0.X] Fixed a needless list() coercion in in ChangeList. Refs #10163. Backport of [10624] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-04-23 14:18:02 +00:00
parent 2ceee52303
commit 91d063c405

View File

@ -115,7 +115,7 @@ class ChangeList(object):
# Get the list of objects to display on this 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:
try:
result_list = paginator.page(self.page_num+1).object_list