Ticket #222 (assigned enhancement)
When running forwards and backwards migrations, raise an exception if someone uses a non-FakeORM model
|Reported by:||sfllaw@…||Owned by:||andrew|
Sometimes, people may import a Model directly in a forwards() or backwards() migration.
This is a bad idea, because it works around the ORM. We can warn against this if we monkey-patch every models.get_models() so that __getattribute__() raises a NativeModelError.
This can be caught by run_forwards() and run_backwards() to let the developer know which migration was at fault.
- Status changed from new to assigned
- Version set to Mercurial tip
- Milestone set to 0.6