Closed orschiro closed 11 years ago
That's because when you declare a readonly field like that, django makes it not a real form field and the location never gets saved. I do it like this in the admin:
formfield_overrides = { map_fields.GeoLocationField: {'widget': widgets.TextInput(attrs={'readonly': 'readonly'})}, }
This forces the html to be readonly, but the form data still stays and gets posted.
I apologize for the slow reply, I was on vacation.
What does map_fields.GeoLocationField actually is?
Hello,
I followed your suggestion and put geolocation into read only.
However, now I only see the world map in the admin but no longer the exact address as given by AddressField.
How can I fix that?
Regards
Robert