Ticket #7285: inspectdb_replace_dash.diff
File inspectdb_replace_dash.diff, 722 bytes (added by , 16 years ago) |
---|
-
django/core/management/commands/inspectdb.py
43 43 except NotImplementedError: 44 44 indexes = {} 45 45 for i, row in enumerate(introspection_module.get_table_description(cursor, table_name)): 46 att_name = row[0].lower() 46 att_name = row[0].lower().replace('-', '_') 47 47 comment_notes = [] # Holds Field notes, to be displayed in a Python comment. 48 48 extra_params = {} # Holds Field parameters such as 'db_column'. 49 49