From 350ec6406532c51d7f12144abf7d4534a5444c4f Mon Sep 17 00:00:00 2001
From: Simon Charette <charette.s@gmail.com>
Date: Tue, 22 Jan 2013 05:05:51 -0500
Subject: [PATCH] Fixed 19653 -- Make sure get_empty_query_set calls
get_query_set
---
django/db/models/manager.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/django/db/models/manager.py b/django/db/models/manager.py
index 816f619..aeb5fa0 100644
a
|
b
|
class Manager(object):
|
113 | 113 | ####################### |
114 | 114 | |
115 | 115 | def get_empty_query_set(self): |
116 | | return QuerySet(self.model, using=self._db).none() |
| 116 | return self.get_query_set().none() |
117 | 117 | |
118 | 118 | def get_query_set(self): |
119 | 119 | """Returns a new QuerySet object. Subclasses can override this method |
… |
… |
class EmptyManager(Manager):
|
266 | 266 | self.model = model |
267 | 267 | |
268 | 268 | def get_query_set(self): |
269 | | return self.get_empty_query_set() |
| 269 | return super(EmptyManager, self).get_query_set().none() |