Ticket #9640: patch.diff
File patch.diff, 554 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/__init__.py
371 371 372 372 class BooleanField(Field): 373 373 def __init__(self, *args, **kwargs): 374 kwargs['blank'] = True374 kwargs['blank'] = not 'choices' in kwargs 375 375 if 'default' not in kwargs and not kwargs.get('null'): 376 376 kwargs['default'] = False 377 377 Field.__init__(self, *args, **kwargs)