fix empty tag bug
This commit is contained in:
parent
0aa7bd35ad
commit
19d66c3fef
1 changed files with 2 additions and 0 deletions
|
@ -107,4 +107,6 @@ class TagField(forms.CharField):
|
|||
widget = TagInput
|
||||
def to_python(self, value):
|
||||
value = super().to_python(value)
|
||||
if not value:
|
||||
return
|
||||
return [t.strip() for t in value.split(',')]
|
||||
|
|
Loading…
Add table
Reference in a new issue