Ticket #6935: handle-table-name-spaces.diff

File handle-table-name-spaces.diff, 614 bytes (added by Adam Vandenberg, 16 years ago)
  • django/core/management/commands/inspectdb.py

     
    1818
    1919        introspection_module = get_introspection_module()
    2020
    21         table2model = lambda table_name: table_name.title().replace('_', '')
     21        table2model = lambda table_name: table_name.title().replace('_', '').replace(' ', '')
    2222
    2323        cursor = connection.cursor()
    2424        yield "# This is an auto-generated Django model module."
Back to Top