Ticket #2855: boolean_default.patch
File boolean_default.patch, 513 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/__init__.py
372 372 class BooleanField(Field): 373 373 def __init__(self, *args, **kwargs): 374 374 kwargs['blank'] = True 375 if not kwargs.has_key('default'): 376 kwargs['default'] = False 375 377 Field.__init__(self, *args, **kwargs) 376 378 377 379 def to_python(self, value):