Problem loading fixtures sql files when models are in models/ directory and not in the models.py
|Reported by:||shomodj@…||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.3|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If I put model files into models/ directory and add Meta: app_label, sql create works, but now fixtures don't work as django now looks in the app/models/sql path and not in the app/sql path as stated in the documentation.
bug is in the django/core/management/sql.py line 130
Now I'm not sure if this is a documentation bug or django bug...
Change History (4)
comment:1 Changed 3 years ago by lukeplant
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted