#5679: Can't assign GEOS geometries to a general GeometryField
-----------------------+----------------------------------------------------
Reporter:  rcoup       |       Owner:  jbronn
  Status:  new         |   Component:  GIS   
 Version:  SVN         |    Keywords:        
   Stage:  Unreviewed  |   Has_patch:  1     
-----------------------+----------------------------------------------------
 {{{
 class MyModel(models.Models, models.GeoMixin):
   geom = models.GeometryField()
   ...

 my.geom=Point(0,1)
 >>> cannot set GEOMETRY GeometryProxy with value of type: <class
 'django.contrib.gis.geos.geometries.Polygon'>
 }}}

 GeometryProxy checks the geometry type of the new value against that of
 the field, but it doesn't make a special case for a GEOMETRY column (which
 can have any sort of geometry assigned).

 Attached patch resolves.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5679>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to