Author: adrian
Date: 2006-05-09 10:36:14 -0500 (Tue, 09 May 2006)
New Revision: 2872

Modified:
   django/trunk/django/core/management.py
Log:
Fixed #1819 -- inspectdb no longer puts null=True for TextField and CharField. 
Thanks, [EMAIL PROTECTED]

Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2006-05-09 15:31:03 UTC (rev 
2871)
+++ django/trunk/django/core/management.py      2006-05-09 15:36:14 UTC (rev 
2872)
@@ -760,7 +760,7 @@
             # 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)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to