From c63372f3c4186fabeb61081db5421204008fd98c Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 9 May 2006 15:36:14 +0000 Subject: [PATCH] Fixed #1819 -- inspectdb no longer puts null=True for TextField and CharField. Thanks, mir@noris.de git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management.py b/django/core/management.py index 93b1c7b5b5..38d46e864d 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -760,7 +760,7 @@ def inspectdb(): # table description. if row[6]: # If it's NULL... extra_params['blank'] = True - if not field_type in ('TextField', 'CharField'): + if not field_type in ('TextField(', 'CharField('): extra_params['null'] = True field_desc = '%s = models.%s' % (att_name, field_type)