summaryrefslogtreecommitdiff
path: root/django/db/models
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-24 13:47:01 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-24 13:47:01 +0100
commite16c48e001ccd06830bb0bfd1d20e22ec30fce59 (patch)
tree3281a2007b0df0ad3653117dbd23a81acda5dea2 /django/db/models
parentae417dd4d569669e8e1d8f15e643c6ba0820aafe (diff)
Fixed #15124 -- Changed the default for BooleanField.
Thanks to the many contributors who updated and improved the patch over the life of this ticket.
Diffstat (limited to 'django/db/models')
-rw-r--r--django/db/models/fields/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 1f0ce5e4ed..142b33f6a7 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -620,8 +620,6 @@ class BooleanField(Field):
def __init__(self, *args, **kwargs):
kwargs['blank'] = True
- if 'default' not in kwargs and not kwargs.get('null'):
- kwargs['default'] = False
Field.__init__(self, *args, **kwargs)
def get_internal_type(self):