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

KeyError in GeoModelAdmin #111

Closed mobedigg closed 11 years ago

mobedigg commented 12 years ago

Hello, I'm using django-olwidget. I have customized admin.py for my models where I'm using GeoModelAdmin, when I trying delete objects from admin I get error KeyError. In my admin class I am using only this from GeoModelAdmin options = { 'layers': ['google.streets'], } Here is traceback http://dpaste.de/wJZA7/

mobedigg commented 12 years ago

Also when I'm trying to use action on my object AttributeError 'HttpResponseRedirect' object has no attribute 'context_data' http://dpaste.de/9T00X/ Traceback

yourcelf commented 11 years ago

Thanks, this is fixed in https://github.com/yourcelf/olwidget/commit/ced1e13b03ae503ed3cf6d85baf89fb9f8b9da07