From d5ccee5e2abfb8a192d511faaf3530ec0be2d99f Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Fri, 7 Sep 2018 14:54:26 +0100 Subject: [PATCH] Don't check Iterable-- strings are iterable! --- django_kepi/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/django_kepi/__init__.py b/django_kepi/__init__.py index e7c1492..96deeca 100644 --- a/django_kepi/__init__.py +++ b/django_kepi/__init__.py @@ -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: