Ticket #10647: managedm2m_v2.diff
File managedm2m_v2.diff, 701 bytes (added by , 16 years ago) |
---|
-
django/db/backends/creation.py
140 140 "Return the CREATE TABLE statments for all the many-to-many tables defined on a model" 141 141 output = [] 142 142 for f in model._meta.local_many_to_many: 143 output.extend(self.sql_for_many_to_many_field(model, f, style)) 143 if model._meta.managed or f.rel.to._meta.managed: 144 output.extend(self.sql_for_many_to_many_field(model, f, style)) 144 145 return output 145 146 146 147 def sql_for_many_to_many_field(self, model, f, style):