Ticket #3130: boolfield.diff

File boolfield.diff, 357 bytes (added by ben <ben.dean.kawamura@…>, 17 years ago)

Here's a quick patch to fix the problem

  • fields.py

     
    252252
    253253    def clean(self, value):
    254254        "Returns a Python boolean object."
     255        if value is None:
     256            value = False
    255257        Field.clean(self, value)
    256258        return bool(value)
    257259
Back to Top