Fixed an issue where saving an attribute/tag would make duplicates.

This commit is contained in:
Kelketek Rritaa 2014-06-28 18:01:00 -05:00
parent a6187ed997
commit a1b596a847
3 changed files with 41 additions and 24 deletions

View file

@ -161,7 +161,7 @@ class PickledFormField(CharField):
value = 'None'
try:
return literal_eval(value)
except ValueError:
except (ValueError, SyntaxError):
raise ValidationError(self.error_messages['invalid'])