#28341: GeometryField doesn't create GEOSGeometry objects lazily anymore
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
| Fedoseev
Type: Bug | Status: assigned
Component: GIS | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Sergey Fedoseev:
Old description:
> Bisected to e9103402c0fa873aea58a6a11dba510cd308cb84 on test project with
> this script:
>
> {{{
> import mock
> import sys
>
> with mock.patch('django.utils.six.moves.html_parser'):
> import django
> from django.test import TestCase
> from django.contrib.gis.geos import Point
>
> from test_app.models import City
>
> def side_effect(*args, **kwargs):
> sys.exit(1)
>
> django.setup()
>
> with mock.patch('django.contrib.gis.db.models.fields.Geometry.__init__',
> side_effect=side_effect):
> City.objects.first()
> }}}
New description:
Bisected to e9103402c0fa873aea58a6a11dba510cd308cb84 on test project with
this script:
{{{
import mock
import sys
with mock.patch('django.utils.six.moves.html_parser'):
import django
from django.test import TestCase
from django.contrib.gis.geos import Point
from test_app.models import City
def side_effect(*args, **kwargs):
sys.exit(1)
django.setup()
with mock.patch('django.contrib.gis.db.models.fields.Geometry.__init__',
side_effect=side_effect):
City.objects.first()
}}}
This laziness is declared in
[https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/#lazy-
geometries GeoDjango Tutorial].
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28341#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.7686062c04c0d6ab80ecb2d9d2c7b7f3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.