Kaydet (Commit) 5ec44450 authored tarafından Justin Bronn's avatar Justin Bronn

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
üst f114fbec
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment