Ticket #9640: patch.diff

File patch.diff, 554 bytes (added by fperetti, 16 years ago)

New patch, now must work!

  • django/db/models/fields/__init__.py

     
    371371
    372372class BooleanField(Field):
    373373    def __init__(self, *args, **kwargs):
    374         kwargs['blank'] = True
     374        kwargs['blank'] = not 'choices' in kwargs
    375375        if 'default' not in kwargs and not kwargs.get('null'):
    376376            kwargs['default'] = False
    377377        Field.__init__(self, *args, **kwargs)
Back to Top