From 4ce515a5b9925a572e63c85bc00a493205fefc4b Mon Sep 17 00:00:00 2001 From: jpic Date: Tue, 21 Jan 2014 14:28:44 +0100 Subject: [PATCH] Fix #236: Potential issue when django-taggit is not installed. --- autocomplete_light/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocomplete_light/forms.py b/autocomplete_light/forms.py index 3265a7442..0aeeed1d9 100644 --- a/autocomplete_light/forms.py +++ b/autocomplete_light/forms.py @@ -34,7 +34,7 @@ try: from taggit.managers import TaggableManager except ImportError: - TaggableManager = None + class TaggableManager(object): pass from .registry import registry as default_registry from .fields import (ModelChoiceField, ModelMultipleChoiceField,