Skip to content

Commit b32ef73

Browse files
committed
code quality, again
1 parent 725109d commit b32ef73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dal_select2_taggit/widgets.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class TaggitSelect2(TagSelect2):
1010
"""Select2 tag widget for taggit's TagField."""
1111

1212
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)
13+
"""insure there's a comma when there's only one tag,
14+
or tag "Multi word" would end up as "Multi" and "word"."""
15+
value = super(TaggitSelect2, self).value_from_datadict(data,
16+
files, name)
1517
if ',' not in value:
1618
value = '%s,' % value
1719
return value

0 commit comments

Comments
 (0)