Missing migration for CoderedPage.index_order_by default/choices
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 58/100
調査の方向性
coderedcms/models/page_models.py と migration 0044 から始め、次に pipenv run python manage.py makemigrations --check --dry-run を実行して、報告されたモデルと migration の不一致を調査します。CoderedPage.index_order_by のデフォルト値と choices が migration に反映され、チェックで migration が生成されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Python
- スター
- 765
- フォーク
- 154
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coderedcorp/coderedcms のほかの issue
-
Type: Bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
coderedcorp/coderedcms#713 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
coderedcorp/coderedcms#710 · コメント 4 件 ·
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
coderedcorp/coderedcms#707 · コメント 1 件 ·
coderedcorp/coderedcms の issue をすべて見る
似ている issue
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100