1
0
mirror of https://github.com/django/django.git synced 2025-07-03 01:09:12 +00:00

magic-removal: Removed QuerySet.core_filters hook, because we now have Manager.get_query_set() hook

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-02-03 20:32:19 +00:00
parent 5f646ff486
commit f59ca4e96c

View File

@ -59,13 +59,9 @@ def quote_only_if_word(word):
class QuerySet(object):
"Represents a lazy database lookup for a set of objects"
# Dictionary of lookup parameters to apply to every _get_sql_clause().
core_filters = {}
def __init__(self, model=None):
self.model = model
self._filters = Q(**(self.core_filters))
self._filters = Q()
self._order_by = None # Ordering, e.g. ('date', '-name'). If None, use model's ordering.
self._select_related = False # Whether to fill cache for related objects.
self._distinct = False # Whether the query should use SELECT DISTINCT.