... label)s' と '%(class)s' を含めることができ、これにより小文字化されたアプリラベルと具体モデルのクラス名に置き換えられます。 CheckConstraint ( condition = Q ( age__gte = 18 ), name = " %(app_label)s _ %(class)s _is_adult" ) 制約のバリデーション 制約は モデルのバリ ... 約は無視されます。 制約に違反した場合は ValidationError を発生させます。 このメソッドはサブクラスで実装する必要があります。 CheckConstraint ¶ class CheckConstraint ( * , condition , name , violation_error_code = None , violation_error_message = None ) [ソース] ¶ ... データベースにチェック制約を作成します。 condition ¶ CheckConstraint. condition ¶ 制約が強制する条件チェックを指定する Q オブジェクトまたは真偽値の Expression です。 例: CheckConstraint ( con ... ... label)s' と '%(class)s' を含めることができ、これにより小文字化されたアプリラベルと具体モデルのクラス名に置き換えられます。 CheckConstraint ( condition = Q ( age__gte = 18 ), name = " %(app_label)s _ %(class)s _is_adult" ) 制約のバリデーション 制約は モデルのバリ ... 約は無視されます。 制約に違反した場合は ValidationError を発生させます。 このメソッドはサブクラスで実装する必要があります。 CheckConstraint ¶ class CheckConstraint ( * , condition , name , violation_error_code = None , violation_error_message = None ) [ソース] ¶ ... データベースにチェック制約を作成します。 condition ¶ CheckConstraint. condition ¶ 制約が強制する条件チェックを指定する Q オブジェクトまたは真偽値の Expression です。 例: CheckConstraint ( con ... ... debug page ( #32637 ). Fixed a bug in Django 3.2 where a system check would crash on a reverse one-to-one relationships in CheckConstraint.check or UniqueConstraint.condition ( #32635 ). Fixed a regression in Django 3.2 that caused a crash of ModelAdmin.search_ ... ... debug page ( #32637 ). Fixed a bug in Django 3.2 where a system check would crash on a reverse one-to-one relationships in CheckConstraint.check or UniqueConstraint.condition ( #32635 ). Fixed a regression in Django 3.2 that caused a crash of ModelAdmin.search_ ... ... 、選択カラムが多すぎることによってクラッシュするリグレッションが修正されました ( #33992 )。 Django 4.1 で、 NULL 値に対する CheckConstraint の検証が正しく行われないバグが修正されました( #33996 )。 Django 4.1 で、 ArrayAgg() や JSONBAgg() を使用した際に QuerySe ... ... 、選択カラムが多すぎることによってクラッシュするリグレッションが修正されました ( #33992 )。 Django 4.1 で、 NULL 値に対する CheckConstraint の検証が正しく行われないバグが修正されました( #33996 )。 Django 4.1 で、 ArrayAgg() や JSONBAgg() を使用した際に QuerySe ... ... a callable for path . Allowed symmetrical intermediate table for self-referential ManyToManyField . The name attributes of CheckConstraint , UniqueConstraint , and Index now support app label and class interpolation using the '%(app_label)s' and '%(class)s' pla ... espectively. System checks and validators are now also properly inherited. FileField.upload_to now supports pathlib.Path . CheckConstraint is now supported on MySQL 8.0.16+. The new allows_group_by_selected_pks_on_model() method of django.db.backends.base.BaseD ... will consist of a single asterisk '*' . On MySQL 8.0.16+, PositiveIntegerField and PositiveSmallIntegerField now include a check constraint to prevent negative values in the database. alias=None is added to the signature of Expression.get_group_by_cols() . Rege ... ... モデルのバリデーションがクラッシュするバグが修正されました ( #33902 )。 Django 4.1 で、PostgreSQL の範囲フィールドを使用した CheckConstraint() のバリデーションが正しく行われないバグが修正されました ( #33905 )。 Django 4.1 で、PostgreSQL において AutoField 、 BigA ... ... a callable for path . Allowed symmetrical intermediate table for self-referential ManyToManyField . The name attributes of CheckConstraint , UniqueConstraint , and Index now support app label and class interpolation using the '%(app_label)s' and '%(class)s' pla ... espectively. System checks and validators are now also properly inherited. FileField.upload_to now supports pathlib.Path . CheckConstraint is now supported on MySQL 8.0.16+. The new allows_group_by_selected_pks_on_model() method of django.db.backends.base.BaseD ... will consist of a single asterisk '*' . On MySQL 8.0.16+, PositiveIntegerField and PositiveSmallIntegerField now include a check constraint to prevent negative values in the database. alias=None is added to the signature of Expression.get_group_by_cols() . Rege ... ... モデルのバリデーションがクラッシュするバグが修正されました ( #33902 )。 Django 4.1 で、PostgreSQL の範囲フィールドを使用した CheckConstraint() のバリデーションが正しく行われないバグが修正されました ( #33905 )。 Django 4.1 で、PostgreSQL において AutoField 、 BigA ... 2026年10月08日