summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-10-20 20:05:43 +0200
committerClaude Paroz <claude@2xlibre.net>2014-10-20 22:37:19 +0200
commit4fe6824ffd319b199140e291f0f742e7fe1f4615 (patch)
tree2aad9d6e3dcce60303e3b51ea3399ab7bc147f55 /django
parent2118aa8aeafe0a215eae7188c40484d791921c67 (diff)
Fixed #23679 -- Fixed null introspection for char/text fields
Thanks Paul Dejean for the report.
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,