Added ListField type with unit tests
This commit is contained in:
parent
8ec6fecd23
commit
5fcb5aba7c
4 changed files with 97 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class BaseField(object):
|
|||
try:
|
||||
value = self._to_python(value)
|
||||
self._validate(value)
|
||||
except (ValueError, AttributeError):
|
||||
except (ValueError, AttributeError, AssertionError):
|
||||
raise ValidationError('Invalid value for field of type "' +
|
||||
self.__class__.__name__ + '"')
|
||||
elif self.required:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue