[GSoC 2021] Adapt Schema Editors to operate from model states instead of fake rendered models

While working on this, I converted most of the code of the create_model part of SchemaEditor to make it compatible with ModelState but when I am passing model_state it is not working fine for 2 tables LogEntry and Site. Apart from these 2 when I am testing the same by creating my own tables, then the SchemaEditor works fine with ModelStates.

Does anyone have any idea of what’s the reason for this?

It’s hard to help without a code. I recommend opening a draft PR where we could check details and discuss.

1 Like

I will do that for sure in a day or 2.

I have drafted a PR for what is in my mind.