From c7af1de191b1b86708b7c14bbf7adc4eb3a13310 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 5 Aug 2009 00:47:07 +0000 Subject: [PATCH] [soc2009/multidb] Fixed a bug in the MySQL backend creation where it hadn't been updated for the recent API changes git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11393 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/mysql/creation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/backends/mysql/creation.py b/django/db/backends/mysql/creation.py index 5f60611871..f4a86027ea 100644 --- a/django/db/backends/mysql/creation.py +++ b/django/db/backends/mysql/creation.py @@ -48,11 +48,11 @@ class DatabaseCreation(BaseDatabaseCreation): table_output = [ ' %s %s %s,' % (style.SQL_FIELD(qn(field.m2m_column_name())), - style.SQL_COLTYPE(models.ForeignKey(model).db_type(self.connection)), + style.SQL_COLTYPE(models.ForeignKey(model).db_type(connection=self.connection)), style.SQL_KEYWORD('NOT NULL')), ' %s %s %s,' % (style.SQL_FIELD(qn(field.m2m_reverse_name())), - style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(self.connection)), + style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(connection=self.connection)), style.SQL_KEYWORD('NOT NULL')) ] deferred = [