#12344: Mixing geo and nongeo with select_related() doesn't work with Oracle ----------------------------------+----------------------------------------- Reporter: jtiai | Owner: nobody Status: new | Milestone: Component: GIS | Version: SVN Keywords: gis query orm Oracle | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- When having two models:
{{{ class ModelNormal(models.Model): geo = models.ForeignKey('ModelGeo') class ModelGeo(models.Model): geom = models.PointField() objects = models.GeoManager() }}} When querying: {{{ ModelNormal.objects.all().select_related() }}} Accessing objects causes traceback because Django used ''Manager'' instead of ''GeoManager'' for ''GeoModel'' instance(s). Further investigation indicated that QSL queries didn't have any decorators that GeoManager does for geometry fields needed in Oracle. -- Ticket URL: <http://code.djangoproject.com/ticket/12344> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.