From 4fe6824ffd319b199140e291f0f742e7fe1f4615 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 20 Oct 2014 20:05:43 +0200 Subject: Fixed #23679 -- Fixed null introspection for char/text fields Thanks Paul Dejean for the report. --- django/core/management/commands/inspectdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'django') 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, -- cgit v1.3