Missing migration for CoderedPage.index_order_by default/choices
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 58/100
Research direction
Start with coderedcms/models/page_models.py and migration 0044, then run pipenv run python manage.py makemigrations --check --dry-run to inspect the reported model/migration mismatch. Done means the migration captures the CoderedPage.index_order_by default and choices, and the check no longer generates a migration.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Python
- Stars
- 765
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coderedcorp/coderedcms
-
Type: Bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
coderedcorp/coderedcms#713 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
coderedcorp/coderedcms#710 · 4 comments ·
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
coderedcorp/coderedcms#707 · 1 comment ·
All issues in coderedcorp/coderedcms
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100