... g 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 nullable BinaryFie ... ... sactional spatial metadata initialization on SpatiaLite 4.1+ ( #23152 ). Fixed a migration crash that prevented changing a nullable field with a default to non-nullable with the same default ( #23738 ). Fixed a migration crash when adding GeometryField s ... ... followed by field references ( #36292 ). Fixed a regression in Django 5.2 that caused unnecessary queries when prefetching nullable foreign key relationships ( #36290 ). Fixed a regression in Django 5.2 that caused a crash of QuerySet.bulk_create() with ... ... tate ( True ), or if it is temporary and just for this migration ( False ) - usually because the migration is adding a non-nullable field to a table and needs a default value to put into existing rows. It does not affect the behavior of setting defaults ... 、パフォーマンスに悪影響を及ぼす可能性があります。これを避けるには、以下の手順を実行する必要があります。 デフォルト値なしで nullable フィールドを追加し、 makemigrations コマンドを実行します。これで AddField オペレーションを持つマイグレーションが生成される ... state ( True ), or if it is temporary and just for this migration ( False ) - usually because the migration is altering a nullable field to a non-nullable one and needs a default value to put into existing rows. It does not affect the behavior of settin ... ... attributes and saved to MySQL without requiring an explicit intermediate cast to unicode . A bug affecting filtering on a nullable DateField in SQLite has been resolved. Several updates and improvements have been made to Django's documentation. ... ... 4 ). Fixed a state bug when using an AlterModelManagers operation ( #25852 ). Fixed TypedChoiceField change detection with nullable fields ( #25942 ). Fixed incorrect timezone warnings in custom admin templates that don't have a data-admin-utc-offset att ... ... ds now have a link to object's change form. Added "No date" and "Has date" choices for DateFieldListFilter if the field is nullable. admin に埋め込まれていた jQuery ライブラリが 2.1.4 から 2.2.3 にアップグレードされました。 django.contrib.auth Added supp ... django.setup() . non-null な外部キーフィールドに対する null 代入チェックの廃止 In older versions, assigning None to a non-nullable ForeignKey or OneToOneField raised ValueError('Cannot assign None: "model.field" does not allow null values.') . For consi ... ... end constructor. See Migrating custom email backends . その他 Calling select_related() with no arguments to select all non-nullable related fields is deprecated. Specify the related fields to fetch instead, or use the FETCH_PEERS fetch mode. Setting Mode ... ... , 3 ], [ 2 , 1 ], ] ) # Not valid Board ( pieces = [ [ 2 , 3 ], [ 2 ], ] ) 不規則な形状が必要な場合は、基になるフィールドをnullable にし、値を None でパディングする必要があります。 ArrayField へのクエリ ArrayField には、カスタムルックアップやトランスフォ ... ... the ordering is deterministic. This requires that the ordering includes a field (or set of fields) that is unique and non-nullable. For queries involving a GROUP BY clause, the model's default ordering is ignored. Ordering specified via .extra(order_by= ... r_update () Traceback (most recent call last): ... django.db.utils.NotSupportedError : FOR UPDATE cannot be applied to the nullable side of an outer join この制限を回避するために、nullオブジェクトを気にしない場合は除外できます: >>> Person . objects . sel ... 2026年10月08日