Ticket #1819: textfield_null.diff
File textfield_null.diff, 476 bytes (added by , 19 years ago) |
---|
-
django/core/management.py
a b def inspectdb(): 835 835 # table description. 836 836 if row[6]: # If it's NULL... 837 837 extra_params['blank'] = True 838 if not field_type in ('TextField ', 'CharField'):838 if not field_type in ('TextField(', 'CharField('): 839 839 extra_params['null'] = True 840 840 841 841 field_desc = '%s = models.%s' % (att_name, field_type)