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