sqlall etc. don't work on models within a package
|Reported by:||adurdin@…||Owned by:||adrian|
|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.
Change History (8)
comment:4 Changed 10 years ago by mtredinnick
- Resolution set to duplicate
- Status changed from new to closed
comment:5 Changed 10 years ago by adurdin@…
- Resolution duplicate deleted
- Status changed from closed to reopened