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
This commit is contained in:
parent
76633e5499
commit
3fc5294d2e
|
@ -59,7 +59,7 @@ def get_sql_create(mod):
|
||||||
if rel_field.__class__.__name__ == 'AutoField':
|
if rel_field.__class__.__name__ == 'AutoField':
|
||||||
data_type = 'IntegerField'
|
data_type = 'IntegerField'
|
||||||
else:
|
else:
|
||||||
rel_field.__class__.__name__
|
data_type = rel_field.__class__.__name__
|
||||||
else:
|
else:
|
||||||
rel_field = f
|
rel_field = f
|
||||||
data_type = f.__class__.__name__
|
data_type = f.__class__.__name__
|
||||||
|
|
Loading…
Reference in New Issue