Changeset 3019
- Timestamp:
- 05/31/06 09:52:33 (2 years ago)
- Files:
-
- django/trunk/django/db/models/query.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/query.py
r2997 r3019 316 316 def complex_filter(self, filter_obj): 317 317 """Returns a new QuerySet instance with filter_obj added to the filters. 318 filter_obj can be a Q object (has 'get_sql' method) or a dictionary of 318 filter_obj can be a Q object (has 'get_sql' method) or a dictionary of 319 319 keyword lookup arguments.""" 320 320 # This exists to support framework features such as 'limit_choices_to', … … 381 381 # A.filter(args1).filter(args2) 382 382 combined = other._clone() 383 if self._select: combined._select.update(self._select) 384 if self._where: combined._where.extend(self._where) 385 if self._params: combined._params.extend(self._params) 386 if self._tables: combined._tables.extend(self._tables) 383 387 # If 'self' is ordered and 'other' isn't, propagate 'self's ordering 384 388 if (self._order_by is not None and len(self._order_by) > 0) and \
