#8881: LayerMapping Error with more than two fields geometry
---------------------------------------+------------------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody    
            Status:  new               |     Milestone:  post-1.0  
         Component:  GIS               |       Version:  1.0-beta-1
        Resolution:                    |      Keywords:            
             Stage:  Unreviewed        |     Has_patch:  0         
        Needs_docs:  0                 |   Needs_tests:  0         
Needs_better_patch:  0                 |  
---------------------------------------+------------------------------------
Comment (by anonymous):

 Replying to [comment:1 [EMAIL PROTECTED]:
 = posible fixed =

 {{{
 --- django/contrib/gis/utils/layermapping.py    (revisión: 8965)
 +++ django/contrib/gis/utils/layermapping.py    (copia de trabajo)
 @@ -513,7 +513,7 @@
          try:
              db_table = self.model._meta.db_table
              if SpatialBackend.name == 'oracle': db_table =
 db_table.upper()
 -            gc_kwargs = {GeometryColumns.table_name_col() : db_table}
 +            gc_kwargs = {GeometryColumns.table_name_col() : db_table,
 'f_geometry_column__in':self.mapping}
              return GeometryColumns.objects.get(**gc_kwargs)
          except Exception, msg:
              raise LayerMapError('Geometry column does not exist for
 model. (did you run syncdb?):\n %s' % msg)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8881#comment:2>
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