Changes between Initial Version and Version 1 of Ticket #23547


Ignore:
Timestamp:
Sep 23, 2014, 9:17:03 AM (10 years ago)
Author:
Tim Graham
Comment:

I think your complaint is the same as #23130. If not, could you please reopen with a proposed patch?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23547

    • Property Resolutionduplicate
    • Property Status newclosed
  • Ticket #23547 – Description

    initial v1  
     1{{{
    12class BooleanField(Field):
    23   def to_python(self, value):
     
    1011        if not value and self.required:
    1112            raise ValidationError(self.error_messages['required'], code='required')
     13}}}
    1214In method "validate" value is "True" or "False" as python object, because called after to_python.
    1315So if value is valid ('0' or 'false') and field is required, will be raised ValidationError.
Back to Top