From 855a58f963bb2aa8eeea14be8f22b14020266d08 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 22 Apr 2009 22:16:32 +0000 Subject: [PATCH] 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 --- django/contrib/admin/views/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 49b18ebdfd..95f4ca792c 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -116,7 +116,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