Permalink
Browse files

Bridge the tw2/formencode API divide.

  • Loading branch information...
ralphbean committed Jun 13, 2012
1 parent 14196d9 commit 547357c7fa9bc51dc7e8d47d44bbc4d56f1372af
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/validation.py
@@ -420,7 +420,7 @@ def to_python(self, value):
except ValueError:
raise ValidationError('baddate', self)
def validate_python(self, value, state):
def validate_python(self, value, state=None):
super(DateValidator, self).validate_python(value, state)
if self.required and not value:
raise ValidationError('required', self)

0 comments on commit 547357c

Please sign in to comment.