Ticket #6744: mixedcase_column_attributes.diff
File mixedcase_column_attributes.diff, 693 bytes (added by , 17 years ago) |
---|
-
django/core/management/commands/inspectdb.py
85 85 extra_params['decimal_places'] = row[5] 86 86 87 87 # Add primary_key and unique, if necessary. 88 column_name = extra_params.get('db_column', att_name)88 column_name = row[0] 89 89 if column_name in indexes: 90 90 if indexes[column_name]['primary_key']: 91 91 extra_params['primary_key'] = True