Skip to content
Browse files

[1.5.x] Fixed a string detection in

Backport of 6140795 from master.
  • Loading branch information...
1 parent 4214a22 commit 9af9cdb3eb21617bae37c159d8ab94a4688e3b3f @claudep claudep committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/utils/
2 django/contrib/gis/utils/
@@ -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):

0 comments on commit 9af9cdb

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