Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

This function is unused and should have been removed a few releases ago.

  • Loading branch information...
commit fd3a066ae319956d14a35445d83293fecdfdcce7 1 parent 9dde0dc
authored February 19, 2013

Showing 1 changed file with 0 additions and 23 deletions. Show diff stats Hide diff stats

  1. 23  django/db/backends/mysql/creation.py
23  django/db/backends/mysql/creation.py
@@ -41,26 +41,3 @@ def sql_table_creation_suffix(self):
41 41
     def sql_for_inline_foreign_key_references(self, model, field, known_models, style):
42 42
         "All inline references are pending under MySQL"
43 43
         return [], True
44  
-
45  
-    def sql_for_inline_many_to_many_references(self, model, field, style):
46  
-        from django.db import models
47  
-        opts = model._meta
48  
-        qn = self.connection.ops.quote_name
49  
-
50  
-        table_output = [
51  
-            '    %s %s %s,' %
52  
-                (style.SQL_FIELD(qn(field.m2m_column_name())),
53  
-                style.SQL_COLTYPE(models.ForeignKey(model).db_type(connection=self.connection)),
54  
-                style.SQL_KEYWORD('NOT NULL')),
55  
-            '    %s %s %s,' %
56  
-            (style.SQL_FIELD(qn(field.m2m_reverse_name())),
57  
-            style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(connection=self.connection)),
58  
-            style.SQL_KEYWORD('NOT NULL'))
59  
-        ]
60  
-        deferred = [
61  
-            (field.m2m_db_table(), field.m2m_column_name(), opts.db_table,
62  
-                opts.pk.column),
63  
-            (field.m2m_db_table(), field.m2m_reverse_name(),
64  
-                field.rel.to._meta.db_table, field.rel.to._meta.pk.column)
65  
-            ]
66  
-        return table_output, deferred

0 notes on commit fd3a066

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