mirror of https://github.com/apache/superset.git
[hotfix] fix py3 compatibility broken by basestring
This commit is contained in:
parent
3c92ba9bd5
commit
9d7c05a015
|
@ -1491,7 +1491,7 @@ class WorldMapViz(BaseViz):
|
|||
d = df.to_dict(orient='records')
|
||||
for row in d:
|
||||
country = None
|
||||
if isinstance(row['country'], basestring):
|
||||
if isinstance(row['country'], string_types):
|
||||
country = countries.get(
|
||||
self.form_data.get('country_fieldtype'), row['country'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue