Closed norbertcyran closed 3 years ago
Fixes #202
With this PR, auto migrations will work correctly for models with self-referencing foreign keys. Right now, applying the migration fails because of KeyError (model is not yet in migrator.orm dict)
KeyError
migrator.orm
cc/ @klen
@norbertcyran Great! Thank you!
Fixes #202
With this PR, auto migrations will work correctly for models with self-referencing foreign keys. Right now, applying the migration fails because of
KeyError
(model is not yet inmigrator.orm
dict)cc/ @klen