Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit eab705f6234e035b676fb02a70a9a3812d23351d 1 parent 7299b39
Russell Keith-Magee authored August 16, 2008
2  django/core/management/commands/inspectdb.py
@@ -16,7 +16,7 @@ def handle_inspection(self):
16 16
         from django.db import connection
17 17
         import keyword
18 18
 
19  
-        table2model = lambda table_name: table_name.title().replace('_', '')
  19
+        table2model = lambda table_name: table_name.title().replace('_', '').replace(' ', '')
20 20
 
21 21
         cursor = connection.cursor()
22 22
         yield "# This is an auto-generated Django model module."

0 notes on commit eab705f

Please sign in to comment.
Something went wrong with that request. Please try again.