Django

Code

Changeset 7095

Show
Ignore:
Timestamp:
02/07/08 22:22:00 (1 year ago)
Author:
mtredinnick
Message:

queryset-refactor: Fixed a place where admin was poking about under the covers and I had moved the internal feature it was relying on.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/queryset-refactor/django/contrib/admin/views/main.py

    r7093 r7095  
    628628        # given. If not, use paginator.hits to calculate the number of objects, 
    629629        # because we've already done paginator.hits and the value is cached. 
    630         if isinstance(self.query_set._filters, models.Q) and not self.query_set._filters.kwargs
     630        if not self.query_set.query.where
    631631            full_result_count = result_count 
    632632        else: