mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[1.5.x] Fixed a string detection in ogrinspect.py
Backport of 61407951 from master.
This commit is contained in:
parent
4214a22e06
commit
9af9cdb3eb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user