Don't check Iterable-- strings are iterable!

thingy_objects
Marnanel Thurman 2018-09-07 14:54:26 +01:00
rodzic 553c3d8d3d
commit d5ccee5e2a
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -1,5 +1,3 @@
from collections import Iterable
__title__ = 'django_kepi'
__version__ = '0.0.16'
VERSION = __version__
@ -43,7 +41,7 @@ def resolve(identifier, atype=None):
if atype is None:
atype = object_type_registry.keys()
elif not isinstance(atype, Iterable):
elif not isinstance(atype, list):
atype = [atype]
for t in atype: