Hi,

I have a problem with GeometryField not showing the saved geometry in the 
admin interface. The problem is that the GeometryField has a type of 
'GEOMETRY' when the value saved might have the type of e.g. 'POINT'. This 
leads to that the OpenLayersWidget will set the value as empty. I do not 
know why the widget do this, but my question is is there a workaround to 
make the geometry show as it should in the admin interface?

This is the line causing problems for me in OpenLayersWidget:
if value and value.geom_type.upper() != self.geom_type:
    value = None


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Y0pZr__NSbgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to