#20190: Accessing a deferred GIS (MultiPolygonField) field on a model instance recursion error ----------------------------+------------------------------------------- Reporter: brian@… | Owner: nobody Type: Bug | Status: new Component: GIS | Version: 1.5 Severity: Normal | Keywords: geodjango gis defer recursion Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------+------------------------------------------- For a model defined similar to:
{{{ class MyModel(models.Model): mpoly = models.MultiPolygonField() objects = models.GeoManager() }}} trying to access mpoly as a deferred field leads to recursion error: {{{ inst = MyModel.objects.get(id=1).mpoly #works inst = MyModel.objects.defer('mpoly').get(id=1).mpoly #fails RuntimeError: maximum recursion depth exceeded while calling a Python object }}} -- Ticket URL: <https://code.djangoproject.com/ticket/20190> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.