From fb606e10ac07af6014cae838c21bf30cf50e8b40 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 4 Feb 2013 04:02:50 -0500 Subject: [PATCH] Fixed #19653 -- Removed `Manager.get_empty_query_set`. --- django/db/models/manager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/django/db/models/manager.py b/django/db/models/manager.py index 816f6194e32..cee2131279b 100644 --- a/django/db/models/manager.py +++ b/django/db/models/manager.py @@ -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()