Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #11785 -- Clarified error message when the layer geometry type …

…doesn't match the model field. Thanks, esizikov for bug report and initial patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 87302ac commit 85e13681b02257dac54ef65506a6f8ceebc8f858 @jbronn jbronn committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/gis/utils/
3  django/contrib/gis/utils/
@@ -205,7 +205,8 @@ def check_ogr_fld(ogr_map_fld):
# Making sure that the OGR Layer's Geometry is compatible.
ltype = self.layer.geom_type
if not ( or self.make_multi(ltype, model_field)):
- raise LayerMapError('Invalid mapping geometry; model has %s%s, layer is %s.' %
+ raise LayerMapError('Invalid mapping geometry; model has %s%s, '
+ 'layer geometry type is %s.' %
(fld_name, (coord_dim == 3 and '(dim=3)') or '', ltype))
# Setting the `geom_field` attribute w/the name of the model field

0 comments on commit 85e1368

Please sign in to comment.
Something went wrong with that request. Please try again.