Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed a string detection in ogrinspect.py

Backport of 6140795 from master.
  • Loading branch information...
commit 9af9cdb3eb21617bae37c159d8ab94a4688e3b3f 1 parent 4214a22
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/gis/utils/ogrinspect.py
View
2  django/contrib/gis/utils/ogrinspect.py
@@ -123,7 +123,7 @@ def _ogrinspect(data_source, model_name, geom_name='geom', layer_key=0, srid=Non
to the given data source. See the `ogrinspect` docstring for more details.
"""
# Getting the DataSource
- if isinstance(data_source, str):
+ if isinstance(data_source, six.string_types):
data_source = DataSource(data_source)
elif isinstance(data_source, DataSource):
pass

0 comments on commit 9af9cdb

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