Ticket #581 (closed defect: invalid)
Change from models.py to models module results in deletion of all models
|Reported by:||thomas.paul.matthews@…||Owned by:||andrew|
I started my app with all the models in models.py, but this grew unwieldy (the models are for storing data from a particular type of scientific experiment and dont really seem to warrant separate apps). I created a models directory within the app with init.py and several files for the models. The code for the models was unchanged, other than to add app_label under Meta and update the imports. I ran a schemamigration --auto for the app and it detected that I had deleted all of my models, even though I just moved them.