Ticket #6935: handle-table-name-spaces.diff
File handle-table-name-spaces.diff, 614 bytes (added by , 17 years ago) |
---|
-
django/core/management/commands/inspectdb.py
18 18 19 19 introspection_module = get_introspection_module() 20 20 21 table2model = lambda table_name: table_name.title().replace('_', '') 21 table2model = lambda table_name: table_name.title().replace('_', '').replace(' ', '') 22 22 23 23 cursor = connection.cursor() 24 24 yield "# This is an auto-generated Django model module."