mirror of
https://github.com/django/django.git
synced 2025-07-03 17:29: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:
parent
5f646ff486
commit
f59ca4e96c
@ -59,13 +59,9 @@ def quote_only_if_word(word):
|
|||||||
|
|
||||||
class QuerySet(object):
|
class QuerySet(object):
|
||||||
"Represents a lazy database lookup for a set of objects"
|
"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):
|
def __init__(self, model=None):
|
||||||
self.model = model
|
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._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._select_related = False # Whether to fill cache for related objects.
|
||||||
self._distinct = False # Whether the query should use SELECT DISTINCT.
|
self._distinct = False # Whether the query should use SELECT DISTINCT.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user