Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit fb606e10ac07af6014cae838c21bf30cf50e8b40 1 parent 869c9ba
@charettes charettes authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 django/db/models/manager.py
View
7 django/db/models/manager.py
@@ -112,9 +112,6 @@ 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.
@@ -122,7 +119,7 @@ def get_query_set(self):
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()
Please sign in to comment.
Something went wrong with that request. Please try again.