Ticket #10647: managedm2m.diff

File managedm2m.diff, 594 bytes (added by Pavel Anossov, 16 years ago)

patch

  • django/db/backends/creation.py

     
    138138
    139139    def sql_for_many_to_many(self, model, style):
    140140        "Return the CREATE TABLE statments for all the many-to-many tables defined on a model"
     141        if not model._meta.managed:
     142            return []
    141143        output = []
    142144        for f in model._meta.local_many_to_many:
    143145            output.extend(self.sql_for_many_to_many_field(model, f, style))
Back to Top