Commit eab705f6 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #6935: Modified inspectdb to provide better handling for table names...

Fixed #6935: Modified inspectdb to provide better handling for table names with spaces. Thanks to adamv for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7299b397
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class Command(NoArgsCommand):
        from django.db import connection
        import keyword

        table2model = lambda table_name: table_name.title().replace('_', '')
        table2model = lambda table_name: table_name.title().replace('_', '').replace(' ', '')

        cursor = connection.cursor()
        yield "# This is an auto-generated Django model module."