Skip to content

Commit

Permalink
Fixed #1819 -- inspectdb no longer puts null=True for TextField and C…
Browse files Browse the repository at this point in the history
…harField. Thanks, mir@noris.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 9, 2006
1 parent 6341b43 commit c63372f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def table2model(table_name):
# 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)
Expand Down

0 comments on commit c63372f

Please sign in to comment.