Ticket #6744: mixedcase_column_attributes.diff

File mixedcase_column_attributes.diff, 693 bytes (added by Fabio Corneti, 17 years ago)
  • django/core/management/commands/inspectdb.py

     
    8585                        extra_params['decimal_places'] = row[5]
    8686
    8787                    # Add primary_key and unique, if necessary.
    88                     column_name = extra_params.get('db_column', att_name)
     88                    column_name = row[0]
    8989                    if column_name in indexes:
    9090                        if indexes[column_name]['primary_key']:
    9191                            extra_params['primary_key'] = True
Back to Top