Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit fb606e10ac07af6014cae838c21bf30cf50e8b40 1 parent 869c9ba
Simon Charette authored February 04, 2013

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  django/db/models/manager.py
7  django/db/models/manager.py
@@ -112,9 +112,6 @@ def db(self):
112 112
     # PROXIES TO QUERYSET #
113 113
     #######################
114 114
 
115  
-    def get_empty_query_set(self):
116  
-        return QuerySet(self.model, using=self._db).none()
117  
-
118 115
     def get_query_set(self):
119 116
         """Returns a new QuerySet object.  Subclasses can override this method
120 117
         to easily customize the behavior of the Manager.
@@ -122,7 +119,7 @@ def get_query_set(self):
122 119
         return QuerySet(self.model, using=self._db)
123 120
 
124 121
     def none(self):
125  
-        return self.get_empty_query_set()
  122
+        return self.get_query_set().none()
126 123
 
127 124
     def all(self):
128 125
         return self.get_query_set()
@@ -266,4 +263,4 @@ def __init__(self, model):
266 263
         self.model = model
267 264
 
268 265
     def get_query_set(self):
269  
-        return self.get_empty_query_set()
  266
+        return super(EmptyManager, self).get_query_set().none()

0 notes on commit fb606e1

Please sign in to comment.
Something went wrong with that request. Please try again.