... has a self-referential foreign key ( #24748 ). Implemented ForeignKey.get_db_prep_value() so that ForeignKey s pointing to UUIDField and inheritance on models with UUIDField primary keys work correctly ( #24698 , #24712 ). Fixed isnull lookup for HStoreFi ... b account query ForeignKey database cached backend flush users their auth user logged flushed 修正 crash expressions MySQL UUIDField together クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... されました。 QuerySet.aiterator() が以前の prefetch_related() 呼び出しをサポートするようになりました。 MariaDB 10.7 以降で、 UUIDField は CHAR(32) ではなく UUID カラムとして作成されます。詳細は、 MariaDB 10.7+ における既存の UUIDField のマイグレーション のマ ... 前のフィールドを持つモデルは、ルックアップで create_defaults__exact を指定する必要があります。 MariaDB 10.7+ における既存の UUIDField のマイグレーション ¶ MariaDB 10.7以降では、 UUIDField は CHAR(32) カラムではなく UUID カラムとして作成されるようになりまし ... た。その結果、Django < 5.0で作成された任意の UUIDField は、 CHAR(32) に基づく UUIDField サブクラスに置き換える必要があります: class Char32UUIDField ( models . UUIDField ): def d ... ... されました。 QuerySet.aiterator() が以前の prefetch_related() 呼び出しをサポートするようになりました。 MariaDB 10.7 以降で、 UUIDField は CHAR(32) ではなく UUID カラムとして作成されます。詳細は、 MariaDB 10.7+ における既存の UUIDField のマイグレーション のマ ... 前のフィールドを持つモデルは、ルックアップで create_defaults__exact を指定する必要があります。 MariaDB 10.7+ における既存の UUIDField のマイグレーション ¶ MariaDB 10.7以降では、 UUIDField は CHAR(32) カラムではなく UUID カラムとして作成されるようになりまし ... た。その結果、Django < 5.0で作成された任意の UUIDField は、 CHAR(32) に基づく UUIDField サブクラスに置き換える必要があります: class Char32UUIDField ( models . UUIDField ): def d ... ... has a self-referential foreign key ( #24748 ). Implemented ForeignKey.get_db_prep_value() so that ForeignKey s pointing to UUIDField and inheritance on models with UUIDField primary keys work correctly ( #24698 , #24712 ). Fixed isnull lookup for HStoreFi ... ... れ、これがユニーク制約に違反するためです。 そのため、次の手順を踏む必要があります。この例では、デフォルト値を持つ非 Null の UUIDField を追加します。必要に応じて、該当するフィールドを変更してください。 モデルに default=uuid.uuid4 と unique=True 引数を持つフ ... ulate_uuid_values" ), ] operations = [ migrations . AlterField ( model_name = "mymodel" , name = "uuid" , field = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ] 最初の移行ファイルを編集します。 生成された移行クラスは次のようになります ... _auto_20150129_1705" ), ] operations = [ migrations . AddField ( model_name = "mymodel" , name = "uuid" , field = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ] unique=True を null=True に変更してください。これは、一時的にNULLフィール ... ... れ、これがユニーク制約に違反するためです。 そのため、次の手順を踏む必要があります。この例では、デフォルト値を持つ非 Null の UUIDField を追加します。必要に応じて、該当するフィールドを変更してください。 モデルに default=uuid.uuid4 と unique=True 引数を持つフ ... ulate_uuid_values" ), ] operations = [ migrations . AlterField ( model_name = "mymodel" , name = "uuid" , field = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ] 最初の移行ファイルを編集します。 生成された移行クラスは次のようになります ... _auto_20150129_1705" ), ] operations = [ migrations . AddField ( model_name = "mymodel" , name = "uuid" , field = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ] unique=True を null=True に変更してください。これは、一時的にNULLフィール ... ... widget to add a space after custom classes ( #29221 ). Fixed PasswordResetConfirmView crash when using a user model with a UUIDField primary key and the reset URL contains an encoded primary key value that decodes to an invalid UUID ( #29206 ). Fixed a re ... ... widget to add a space after custom classes ( #29221 ). Fixed PasswordResetConfirmView crash when using a user model with a UUIDField primary key and the reset URL contains an encoded primary key value that decodes to an invalid UUID ( #29206 ). Fixed a re ... ... including when SESSION_SAVE_EVERY_REQUEST is active. バグ修正 ¶ Added the ability to serialize values from the newly added UUIDField ( #25019 ). Added a system check warning if the old TEMPLATE_* settings are defined in addition to the new TEMPLATES setti ... ... including when SESSION_SAVE_EVERY_REQUEST is active. バグ修正 ¶ Added the ability to serialize values from the newly added UUIDField ( #25019 ). Added a system check warning if the old TEMPLATE_* settings are defined in addition to the new TEMPLATES setti ... 2026年10月08日