sqlall etc. don't work on models within a package
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I was trying to split my models.py out into separate modules to prevent it becoming too monolithic, so I created a models package. I moved some of the classes into models/init.py, and the other I split off into several other modules in the models package.
Now when trying to update the database for the new models I've created, I found that
manage.py sql <appname> only outputs sql for the classes in models/init.py, and not for any of the other modules.