Permalink
Browse files

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

  • Loading branch information...
1 parent 869c9ba commit fb606e10ac07af6014cae838c21bf30cf50e8b40 @charettes charettes committed Feb 4, 2013
Showing with 2 additions and 5 deletions.
  1. +2 −5 django/db/models/manager.py
@@ -112,17 +112,14 @@ def db(self):
# 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.
"""
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 @@ def __init__(self, model):
self.model = model
def get_query_set(self):
- return self.get_empty_query_set()
+ return super(EmptyManager, self).get_query_set().none()

0 comments on commit fb606e1

Please sign in to comment.