diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py
index df0fd9f..8e3d605 100644
a
|
b
|
class ChangeList(object):
|
104 | 104 | |
105 | 105 | # Get the total number of objects, with no admin filters applied. |
106 | 106 | # Perform a slight optimization: Check to see whether any filters were |
107 | | # given. If not, use paginator.hits to calculate the number of objects, |
108 | | # because we've already done paginator.hits and the value is cached. |
109 | | if not self.query_set.query.where: |
| 107 | # given by the user, if any came from ModelAdmin.queryset we don't |
| 108 | # consider those here. If not, use paginator.hits to calculate the |
| 109 | # number of objects, because we've already done paginator.hits and the |
| 110 | # value is cached. |
| 111 | if not set(self.params) - set([ALL_VAR, ORDER_VAR, ORDER_TYPE_VAR, SEARCH_VAR, IS_POPUP_VAR]): |
110 | 112 | full_result_count = result_count |
111 | 113 | else: |
112 | 114 | full_result_count = self.root_query_set.count() |