mirror of
https://github.com/django/django.git
synced 2025-07-06 18:59:13 +00:00
queryset-refactor: Fixed a place where admin was poking about under the covers and I had moved the internal feature it was relying on.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
755bb2a3f2
commit
55cd025670
@ -627,7 +627,7 @@ class ChangeList(object):
|
|||||||
# Perform a slight optimization: Check to see whether any filters were
|
# Perform a slight optimization: Check to see whether any filters were
|
||||||
# given. If not, use paginator.hits to calculate the number of objects,
|
# given. If not, use paginator.hits to calculate the number of objects,
|
||||||
# because we've already done paginator.hits and the value is cached.
|
# because we've already done paginator.hits and the value is cached.
|
||||||
if isinstance(self.query_set._filters, models.Q) and not self.query_set._filters.kwargs:
|
if not self.query_set.query.where:
|
||||||
full_result_count = result_count
|
full_result_count = result_count
|
||||||
else:
|
else:
|
||||||
full_result_count = self.manager.count()
|
full_result_count = self.manager.count()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user