We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725109d commit b32ef73Copy full SHA for b32ef73
src/dal_select2_taggit/widgets.py
@@ -10,8 +10,10 @@ class TaggitSelect2(TagSelect2):
10
"""Select2 tag widget for taggit's TagField."""
11
12
def value_from_datadict(self, data, files, name):
13
- """insure there's a comma when there's only one tag, or tag "Multi word" would end up as "Multi" and "word" """
14
- value = super(TaggitSelect2, self).value_from_datadict(data, files, name)
+ """insure there's a comma when there's only one tag,
+ or tag "Multi word" would end up as "Multi" and "word"."""
15
+ value = super(TaggitSelect2, self).value_from_datadict(data,
16
+ files, name)
17
if ',' not in value:
18
value = '%s,' % value
19
return value
0 commit comments