'Validates that the input is in self.choices.'

def validate(self, value):

    super(ChoiceField, self).validate(value)
    if (value and (not self.valid_value(value))):
        raise ValidationError((self.error_messages[u'invalid_choice'] % {u'value': value}))
