summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/inspectdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py
index 52c3ac5a25..32ee23581d 100644
--- a/django/core/management/commands/inspectdb.py
+++ b/django/core/management/commands/inspectdb.py
@@ -123,8 +123,7 @@ class Command(BaseCommand):
field_type = 'NullBooleanField('
else:
extra_params['blank'] = True
- if field_type not in ('TextField(', 'CharField('):
- extra_params['null'] = True
+ extra_params['null'] = True
field_desc = '%s = %s%s' % (
att_name,