Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1819 -- inspectdb no longer puts null=True for TextField and C…

…harField. Thanks, mir@noris.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c63372f3c4186fabeb61081db5421204008fd98c 1 parent 6341b43
Adrian Holovaty authored May 09, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/management.py
2  django/core/management.py
@@ -760,7 +760,7 @@ def table2model(table_name):
760 760
             # table description.
761 761
             if row[6]: # If it's NULL...
762 762
                 extra_params['blank'] = True
763  
-                if not field_type in ('TextField', 'CharField'):
  763
+                if not field_type in ('TextField(', 'CharField('):
764 764
                     extra_params['null'] = True
765 765
 
766 766
             field_desc = '%s = models.%s' % (att_name, field_type)

0 notes on commit c63372f

Please sign in to comment.
Something went wrong with that request. Please try again.