coderedcorp / coderedcorp/coderedcms
Missing migration for CoderedPage.index_order_by default/choices
- Lingua principale
- Python
- Stelle
- 765
- Fork
- 154
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Summary
`coderedcms.models.page_models.CoderedPage.index_order_by` was updated (default/choices) in 6.0.0, but there is no migration for the change. Django reports a missing migration and `makemigrations --check --dry-run` generates one.
## Environment
- coderedcms 6.0.0
- Django 5.2.9
- Python 3.11.4
## Repro
```
pipenv run python manage.py makemigrations --check --dry-run
```
## Output
```
Migrations for 'coderedcms':
.venv/lib/python3.11/site-packages/coderedcms/migrations/0045_alter_coderedpage_index_order_by.py
~ Alter field index_order_by on coderedpage
```
## Notes
In `coderedcms/models/page_models.py`, `index_order_by` now includes an empty choice and uses `default = ""` with `blank=True`. The latest migration (0044) still reflects the old default and choices, so Django sees a model/migration mismatch.
Is it possible to include the missing `AlterField` migration in the next release?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.