Author: jbronn
Date: 2010-01-22 12:30:23 -0600 (Fri, 22 Jan 2010)
New Revision: 12275
Modified:
django/trunk/django/contrib/gis/db/models/manager.py
Log:
Modified `GeoManager.get_query_set` to reflect changes made for database
routing in r12272.
Modified: django/trunk/django/contrib/gis/db/models/manager.py
===================================================================
--- django/trunk/django/contrib/gis/db/models/manager.py 2010-01-22
15:31:14 UTC (rev 12274)
+++ django/trunk/django/contrib/gis/db/models/manager.py 2010-01-22
18:30:23 UTC (rev 12275)
@@ -10,10 +10,7 @@
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)
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.