From 5ec44450df55d53416f9e1a17e73a695c36d749b Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Fri, 22 Jan 2010 18:30:23 +0000 Subject: [PATCH] Modified `GeoManager.get_query_set` to reflect changes made for database routing in r12272. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12275 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/db/models/manager.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/django/contrib/gis/db/models/manager.py b/django/contrib/gis/db/models/manager.py index 041bc0dcd5..84d728dd1e 100644 --- a/django/contrib/gis/db/models/manager.py +++ b/django/contrib/gis/db/models/manager.py @@ -10,10 +10,7 @@ class GeoManager(Manager): use_for_related_fields = True def get_query_set(self): - qs = GeoQuerySet(self.model) - if self._db is not None: - qs = qs.using(self._db) - return qs + return GeoQuerySet(self.model, using=self._db) def area(self, *args, **kwargs): return self.get_query_set().area(*args, **kwargs)