Browse files

queryset-refactor: Fixed a place where admin was poking about under t…

…he covers and I had moved the internal feature it was relying on.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Feb 8, 2008
1 parent 755bb2a commit 55cd02567099767ff9e48a8be24157db6a934ba0
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/
@@ -627,7 +627,7 @@ def get_results(self, request):
# Perform a slight optimization: Check to see whether any filters were
# given. If not, use paginator.hits to calculate the number of objects,
# 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 = self.manager.count()

0 comments on commit 55cd025

Please sign in to comment.