Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified `GeoManager.get_query_set` to reflect changes made for datab…

…ase routing in r12272.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5ec44450df55d53416f9e1a17e73a695c36d749b 1 parent f114fbe
@jbronn jbronn authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/contrib/gis/db/models/
5 django/contrib/gis/db/models/
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.