yourcelf / olwidget

Javascript library to replace textareas that contain WKT data with editable OpenLayers maps, and a django app using it for django forms and admin.
Other
91 stars 44 forks source link

Inherit geometryfield #65

Closed slinkp closed 13 years ago

slinkp commented 13 years ago

As discussed on list: inherit from GeometryField so WKT gets converted to Geometry during clean() ... seems to work (as evidenced by a test that had to be fixed to provide valid WKT)

yourcelf commented 13 years ago

Thanks -- I tested this and it checks out. I left it inheriting just from GeometryField rather than both GeometryField and CharField; I can't think of a reason to keep the double inheritance but do let me know if you can think of one.