class MyGeoAdminForm(forms.ModelForm):
class Meta:
model = GeoModel
def clean(self):
return self.cleaned_data
class MyGeoAdmin(GeoModelAdmin):
form = MyGeoAdminForm
options = {
'layers': ['google.streets', 'osm.osmarender', 'yahoo.map'],
'overlay_style': {
'fill_color': '#ffff00',
'fill_opacity': 0.7,
'stroke_width': 5,
},
'default_lon': -72,
'default_lat': 44,
'hide_textarea': False,
}
map_fields = ['point']
admin.site.register(GeoModel, MyGeoAdmin)
Everything seemed to work as expected. If you send your code for the
AdminForm and GeoModelAdmin implementations perhaps I can help more.
best,
Charlie
What version of Django are you using?
best,
Charlie
Ah, now we're getting there, I can reproduce the error. Yep, looks like
an olwidget bug. I'm looking into it and will try to get a fix out soon.
It appears to be related to some of the magic that a "MapField" does in
v0.4 to allow multiple fields on a single map.
-charlie