summaryrefslogtreecommitdiff
path: root/django/bin/django-admin.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 21:32:58 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 21:32:58 +0000
commit3fc5294d2eb0628091953055caf70f0b0e75fa23 (patch)
tree48914384d31f3b4d59cc033c4b4c92f75fea0445 /django/bin/django-admin.py
parent76633e54999e048afc04ffe24af496ce600c668d (diff)
Fixed #84 -- CREATE TABLE foreign keys now work in MySQL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin/django-admin.py')
-rwxr-xr-xdjango/bin/django-admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py
index 2bbc03764c..7aa049a53f 100755
--- a/django/bin/django-admin.py
+++ b/django/bin/django-admin.py
@@ -59,7 +59,7 @@ def get_sql_create(mod):
if rel_field.__class__.__name__ == 'AutoField':
data_type = 'IntegerField'
else:
- rel_field.__class__.__name__
+ data_type = rel_field.__class__.__name__
else:
rel_field = f
data_type = f.__class__.__name__