We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87302ac commit 85e1368Copy full SHA for 85e1368
django/contrib/gis/utils/layermapping.py
@@ -205,7 +205,8 @@ def check_ogr_fld(ogr_map_fld):
205
# Making sure that the OGR Layer's Geometry is compatible.
206
ltype = self.layer.geom_type
207
if not (ltype.name.startswith(gtype.name) or self.make_multi(ltype, model_field)):
208
- raise LayerMapError('Invalid mapping geometry; model has %s%s, layer is %s.' %
+ raise LayerMapError('Invalid mapping geometry; model has %s%s, '
209
+ 'layer geometry type is %s.' %
210
(fld_name, (coord_dim == 3 and '(dim=3)') or '', ltype))
211
212
# Setting the `geom_field` attribute w/the name of the model field
0 commit comments