#9806: GeometryField crashes contrib.gis.admin
-------------------------------------+--------------------------------------
Reporter: ingenieroariel | Owner: jbronn
Status: assigned | Milestone: 1.3
Component: GIS | Version: 1.0
Resolution: | Keywords: admin, gis, GeometryField
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
-------------------------------------+--------------------------------------
Comment (by slinkp):
I've just attached 9806.4.diff which, at least here, allows me to edit
existing multipolygons.
Applies cleanly against Django 1.2.3.
This is a big improvement for me, but it still doesn't allow setting the
geometry on a new instance of a model with a GeometryField.
This is because I don't know how to sensibly initialize draw_ctl in that
case - we need an appropriate OpenLayers.Handler subclass, and I don't
know what that would be. Don't see anything promising in the OL docs.
Not sure what to do here. We could just assume that people want
MultiPolygons, which would be the most flexible,
but also kind of stupid in a pretty common case where the field is a
GeometryField but the user just wants to enter a point.
--
Ticket URL: <http://code.djangoproject.com/ticket/9806#comment:16>
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 [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.