Commits

Anonymous committed 8e9bff7

Fixing #129: ManyToMany and inheritance FAIL.

Comments (0)

Files changed (1)

south/modelsparser.py

     # Go through all bases (that are themselves models, but not Model)
     for base in model.__bases__:
         if base != models.Model and issubclass(base, models.Model):
-            inherited_fields.update(get_model_fields(base))
+            inherited_fields.update(get_model_fields(base, m2m))
     
     # Now, go through all the fields and try to get their definition
     source = model._meta.local_fields[:]