Commit 15b19ea9 by Alex Gaynor

Not sure what case this is, but a fix none-the-less.

parent 5c19e2d9
...@@ -5,7 +5,7 @@ from taggit.utils import parse_tags ...@@ -5,7 +5,7 @@ from taggit.utils import parse_tags
class TagWidget(forms.TextInput): class TagWidget(forms.TextInput):
def render(self, name, value, attrs=None): def render(self, name, value, attrs=None):
if not isinstance(value, basestring): if value is not None and not isinstance(value, basestring):
value = ", ".join(o.tag.name for o in value.select_related("tag")) value = ", ".join(o.tag.name for o in value.select_related("tag"))
return super(TagWidget, self).render(name, value, attrs) return super(TagWidget, self).render(name, value, attrs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment