Commit 1c431c0c authored by Artem Serga's avatar Artem Serga

#8 - Fix Select2TagsField

parent 5202791f
......@@ -130,4 +130,4 @@ class Select2TagsField(fields.TextField):
self.data = valuelist[0]
def _value(self):
return u', '.join(self.data) if isinstance(self.data, list) else self.data
return u', '.join(self.data or [])
......@@ -95,7 +95,8 @@
if ($el.attr('data-tags')) {
$.extend(opts, {
multiple: true,
tokenSeparators: [',']
tokenSeparators: [','],
tags: []
});
}
......
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 to comment