Open markmiscavage opened 3 months ago
In aerich/migrate.py line 244 the list of dicts being diff'd aren't ordered so there are cases when the diff is finding changes only due to ordering.
Monkey Patch to fix:
`import operator
old_m2m_fields = sorted(old_m2m_fields, key=operator.itemgetter('name')) new_m2m_fields = sorted(new_m2m_fields, key=operator.itemgetter('name'))`
In aerich/migrate.py line 244 the list of dicts being diff'd aren't ordered so there are cases when the diff is finding changes only due to ordering.
Monkey Patch to fix:
`import operator
old_m2m_fields = sorted(old_m2m_fields, key=operator.itemgetter('name')) new_m2m_fields = sorted(new_m2m_fields, key=operator.itemgetter('name'))`