... というマイグレーションオペレーションを使って拡張機能をインストールできます。 trigram_similar ルックアップは、 CharField と TextField 上で使用できます。 >>> City . objects . filter ( name__trigram_similar = "Middlesborough" ) <QuerySet [<City: Middlesbroug ... うマイグレーションオペレーションを使って拡張機能をインストールできます。 trigram_word_similar ルックアップは、 CharField と TextField で使用できます: >>> Sentence . objects . filter ( name__trigram_word_similar = "Middlesborough" ) <QuerySet [<Sentence: Gu ... グレーションオペレーションを使って拡張機能をインストールできます。 trigram_strict_word_similar ルックアップは、 CharField と TextField で使用できます。 Unaccent unaccent ルックアップを使用すると、専用の PostgreSQL 拡張機能を使って、アクセントを無視した検索を ... ... 812 ). Fixed a bug in Django 3.2 that caused a migration crash on MySQL 8.0.13+ when altering BinaryField , JSONField , or TextField to non-nullable ( #32503 ). Fixed a regression in Django 3.2 that caused a migration crash on MySQL 8.0.13+ when adding nu ... llable BinaryField , JSONField , or TextField with a default value ( #32832 ). Fixed a bug in Django 3.2 where a system check would crash on a model with an invalid app ... ... tatement. However, if the database type for the field is either varchar or text (e.g., used by CharField , FileField , and TextField ), then Django will create an additional index that uses an appropriate PostgreSQL operator class for the column. The extr ... (collation) の設定は、どの文字列を等しいものとして比較するかだけでなく、データをソートする順序も制御します。 CharField と TextField には db_collation パラメータを指定して、カラムの照合順序を設定できます。 照合順序はデータベース全体およびテーブルごとに設定 ... に制限される可能性があります。これは CharField , SlugField に影響します。詳細は the MySQL documentation を参照してください。 TextField の制限 MySQL は BLOB または TEXT カラムの最初の N 文字だけをインデックス化できます。 TextField は定義された長さを持たないの ... ... e of caution it's also updated to use textContent . バグ修正 Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AddField on PostgreSQL ( #26889 ). ... ... l Field. null True の場合、Django はデータベース内に NULL として空の値を保持します。デフォルトは False です。 CharField や TextField などの文字列ベースのフィールドでは、 null の使用は避けてください。Django は習慣的に、文字列ベースのフィールドの「データなし ... ッセージはフォームに反映されないことがよくあります。詳細は モデルの error_messages についての注意 を参照してください。 help_text Field. help_text フォームウィジェットと共に表示される "補助" テキストになります。この値はフィールドがフォームとして利用されない ... s CharField ( max_length = None , ** options ) [ソース] 小 - 大サイズの文字列のフィールドです。 多量のテキストを扱うときは TextField を使ってください。 このフィールドのデフォルトのフォームウィジェットは TextInput です。 CharField には以下の追加引数がありま ... ... e of caution it's also updated to use textContent . バグ修正 Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AddField on PostgreSQL ( #26889 ). Python 2 で非 ASCII 文字列のファイル名を使うと makemessages がク ... ... cationMiddleware from setting a "Vary: Cookie" header on all responses ( #23939 ). Fixed a crash when adding blank=True to TextField() on MySQL ( #23920 ). Fixed index creation by the migration infrastructure, particularly when dealing with PostgreSQL spe ... n a crash when adding the NOT NULL constraint ( #23987 ). makemigrations no longer prompts for a default value when adding TextField() or CharField() without a default ( #23405 ). Fixed a migration crash when adding order_with_respect_to to a table with e ... ... .8 causing incorrect index handling in migrations on PostgreSQL when adding db_index=True or unique=True to a CharField or TextField that already had the other specified, or when removing one of them from a field that had both, or when adding unique=True ... ... #34798 )。 Django 4.2 で生じたリグレッションに対処し、PostgreSQL 上で決定論的照合順序 (collation) を使用して CharField と TextField に対する varchar/text_pattern_ops インデックスを作成する機能が復元されました ( #34932 )。 ... ... g a SeparateDatabaseAndState operation backwards ( #25896 ). Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AlterField on PostgreSQL ( #25412 ). Fixed a state bug when using an AlterModelManagers operation ... 2026年10月08日