Opened 5 months ago

Last modified 4 months ago

#28341 assigned Bug

GeometryField doesn't create GEOSGeometry objects lazily anymore

Reported by: Sergey Fedoseev Owned by: Srinivas Reddy Thatiparthy
Component: GIS Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Sergey Fedoseev)

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 GeoDjango Tutorial.

Change History (8)

comment:1 Changed 5 months ago by Sergey Fedoseev

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 Changed 5 months ago by Sergey Fedoseev

Description: modified (diff)

comment:3 Changed 5 months ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:4 Changed 4 months ago by Srinivas Reddy Thatiparthy

Owner: changed from Sergey Fedoseev to Srinivas Reddy Thatiparthy

comment:5 Changed 4 months ago by Srinivas Reddy Thatiparthy

Owner: Srinivas Reddy Thatiparthy deleted
Status: assignednew

comment:6 Changed 4 months ago by Srinivas Reddy Thatiparthy

Owner: set to Srinivas Reddy Thatiparthy
Status: newassigned

comment:7 Changed 4 months ago by Srinivas Reddy Thatiparthy

Apologies for spam - Are you working on this ? @SergeyFedoseev

comment:8 Changed 4 months ago by Sergey Fedoseev

Feel free to work on it.

Note: See TracTickets for help on using tickets.
Back to Top