Skip to content

Commit

Permalink
Modified GeoManager.get_query_set to reflect changes made for datab…
Browse files Browse the repository at this point in the history
…ase routing in r12272.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Jan 22, 2010
1 parent f114fbe commit 5ec4445
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django/contrib/gis/db/models/manager.py
Expand Up @@ -10,10 +10,7 @@ class GeoManager(Manager):
use_for_related_fields = True use_for_related_fields = True


def get_query_set(self): def get_query_set(self):
qs = GeoQuerySet(self.model) return GeoQuerySet(self.model, using=self._db)
if self._db is not None:
qs = qs.using(self._db)
return qs


def area(self, *args, **kwargs): def area(self, *args, **kwargs):
return self.get_query_set().area(*args, **kwargs) return self.get_query_set().area(*args, **kwargs)
Expand Down

0 comments on commit 5ec4445

Please sign in to comment.