Fixed #19653 -- Removed `Manager.get_empty_query_set`.

This commit is contained in:
Simon Charette 2013-02-04 04:02:50 -05:00
parent 869c9ba306
commit fb606e10ac
1 changed files with 2 additions and 5 deletions

View File

@ -112,9 +112,6 @@ class Manager(object):
# PROXIES TO QUERYSET #
#######################
def get_empty_query_set(self):
return QuerySet(self.model, using=self._db).none()
def get_query_set(self):
"""Returns a new QuerySet object. Subclasses can override this method
to easily customize the behavior of the Manager.
@ -122,7 +119,7 @@ class Manager(object):
return QuerySet(self.model, using=self._db)
def none(self):
return self.get_empty_query_set()
return self.get_query_set().none()
def all(self):
return self.get_query_set()
@ -266,4 +263,4 @@ class EmptyManager(Manager):
self.model = model
def get_query_set(self):
return self.get_empty_query_set()
return super(EmptyManager, self).get_query_set().none()