... rror が発生します。更新が既存の行と競合する場合も同様です。 排他制約は モデル バリデーション の間にチェックされます。 name ExclusionConstraint. name BaseConstraint.name を参照。 expressions ExclusionConstraint. expressions 2値タプルのイテラブル。最初の要素は式または ... = "circle_ops" ), RangeOperators . OVERLAPS ), ] これは circle_ops を使用して circle 上に排他制約を作成します。 index_type ExclusionConstraint. index_type The index type of the constraint. Accepted values are GiST , Hash , or SPGiST . Matching is case insensitive. ... If not provided, the default index type is GIST . Changed in Django 6.1: Support for exclusion constraints using Hash indexes was added. condition ExclusionConstraint. condition 行の一部に制約をかける条件を指定する Q オブジェク ... ... synchronous support as it evolves. See 非同期クエリ for details and limitations. 制約のバリデーション Check , unique , and exclusion constraints defined in the Meta.constraints option are now checked during model validation . Form rendering accessibility In order t ... turns an int of the bitwise XOR of all non-null input values. SpGistIndex now supports covering indexes on PostgreSQL 14+. ExclusionConstraint now supports covering exclusion constraints using SP-GiST indexes on PostgreSQL 14+. The new default_bounds attribute of D ... ateTimeRangeField and DecimalRangeField allows specifying bounds for list and tuple inputs. ExclusionConstraint now allows specifying operator classes with the OpClass() expression. django.contrib.sitemaps The default sitemap index te ... ... rms for JSONField ( #32096 ). Fixed a regression in Django 3.1 that caused a migrations crash on PostgreSQL when adding an ExclusionConstraint with key transforms for JSONField in expressions ( #32096 ). Fixed a regression in Django 3.1 where ProtectedError.protect ... ... Field のメソッド) Concat (django.db.models.functions のクラス) concrete (Field の属性) condition (CheckConstraint の属性) (ExclusionConstraint の属性) (FilteredRelation の属性) (Index の属性) (UniqueConstraint の属性) condition() (django.views.decorators.http モジュ ... ュール) DefaultStorage (django.core.files.storage のクラス) defer() (django.db.models.query.QuerySet モジュール) deferrable (ExclusionConstraint の属性) (UniqueConstraint の属性) Degrees (django.db.models.functions のクラス) delete() (cache のメソッド) (Client のメソ ... bug のクラス) exclude (ModelAdmin の属性) (ModelFormOptions の属性) exclude() (django.db.models.query.QuerySet モジュール) ExclusionConstraint (django.contrib.postgres.constraints のクラス) execute() (BaseCommand のメソッド) (BaseDatabaseSchemaEditor のメソッド) ex ... ... 理由はありません。 PostgreSQL 固有の集計関数 汎用的な集計関数 統計のための集計関数 使用例 PostgreSQL 固有のデータベース制約 ExclusionConstraint PostgreSQL 固有のクエリ式 ArraySubquery() 式 PostgreSQL 固有のモデルフィールド これらのフィールドにインデックスを付ける Ar ... ... Ls were subject to potential denial of service attack via the locale parameter. バグ修正 Django 4.1 で、 ExclusionConstraint を持つモデルを追加する際に、PostgreSQL でマイグレーションがクラッシュするリグレッションが修正されました ( #33982 )。 Djang ... ... , name = "upper_description_unique" , ) Upper('description') を使って text_pattern_ops を使用してユニーク制約を作成します: ExclusionConstraint ( name = "exclude_overlapping_ops" , expressions = [ ( OpClass ( "circle" , name = "circle_ops" ), RangeOperators . OVERLA ... ... ource class now supports pathlib.Path . The LayerMapping class now supports pathlib.Path . django.contrib.postgres The new ExclusionConstraint.include attribute allows creating covering exclusion constraints on PostgreSQL 12+. 新しい ExclusionConstraint.opclasses 属 ... ... essages のテストを行う、アサーションメソッド MessagesTestMixin.assertMessages() が追加されました。 django.contrib.postgres ExclusionConstraint に violation_error_code 属性が追加され、 オブジェクトの検証 中に発生する ValidationError の code をカスタマイズできるように ... 除されました。 django.utils.functional.cached_property() の name 引数が削除されました。 django.contrib.postgres.constraints.ExclusionConstraint の opclasses 引数が削除されました。 ドキュメント化されていなかった、 SimpleTestCase.assertFormError() および assertFormset ... ... osely examine your code and move any database operations to be in a synchronous child thread. PostgreSQL における排他制約 (Exclusion constraints) 新しい ExclusionConstraint クラスでは、PostgreSQL への排他制約 (exclusion constraints) の追加を有効になります。制約は M ... 2026年10月08日