Added ListField type with unit tests

This commit is contained in:
Harry Marr 2009-11-19 16:58:25 +00:00
commit 5fcb5aba7c
4 changed files with 97 additions and 2 deletions

View file

@ -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: