Missing migration for CoderedPage.index_order_by default/choices

オープン
#709 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
django, python
領域
backend, database

調査の方向性

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coderedcorp/coderedcms のほかの issue

coderedcorp/coderedcms の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。