per page, with , order by , clip by
Results of 1 - 10 of about 13 for CheckConstraint (0.003 sec.)
制約 (Constraint) リファレンス 14569
制約 (Constraint) リファレンス このモジュールで定義されたクラスはデータベース制約を作成します。これらはモデルの Meta.constraints オプションで追加されます。 組み込みの制約への参照について 制約は django.db.models.constraints で定義されています ... 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 ( condi ...
https://man.mtool.work/django/6.1/ref/models/constraints.html
Django 3.2.1 リリースノート 9378
Django 3.2.1 リリースノート May 4, 2021 Django 3.2.1 fixes a security issue and several bugs in 3.2. CVE-2021-31542: Potential directory-traversal via uploaded files MultiPartParser , UploadedFile , and FieldFile allowed directory-traversal ... 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_ ...
https://man.mtool.work/django/6.1/releases/3.2.1.html
Django 4.1.2 リリースノート 9149
Django 4.1.2 リリースノート October 4, 2022 Django 4.1.2 では、4.1.1 における深刻度 "medium" のセキュリティ問題1件と、いくつかのバグが修正されました。 CVE-2022-41323: 国際化対応した URL における潜在的な Dos 攻撃の脆弱性 Internationalized UR ... 、選択カラムが多すぎることによってクラッシュするリグレッションが修正されました ( #33992 )。 Django 4.1 で、 NULL 値に対する CheckConstraint の検証が正しく行われないバグが修正されました( #33996 )。 Django 4.1 で、 ArrayAgg() や JSONBAgg() を使用した際に QuerySe ...
https://man.mtool.work/django/6.1/releases/4.1.2.html
Django 3.0 リリースノート 8920
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... 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 ...
https://man.mtool.work/django/6.1/releases/3.0.html
Django 4.1.1 リリースノート 8920
Django 4.1.1 リリースノート September 5, 2022年9月5日 Django 4.1.1 では、4.1 におけるいくつかのバグを修正しました。 バグ修正 Django 4.1 でのリグレッションにより、GEOS がインストールされていない場合に GeoIP2() を使用できなかった問題が修正され ... モデルのバリデーションがクラッシュするバグが修正されました ( #33902 )。 Django 4.1 で、PostgreSQL の範囲フィールドを使用した CheckConstraint() のバリデーションが正しく行われないバグが修正されました ( #33905 )。 Django 4.1 で、PostgreSQL において AutoField 、 BigA ...
https://man.mtool.work/django/6.1/releases/4.1.1.html
Django 2.2 リリースノート 8217
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... の最新リリースのみを公式にサポートし、最新リリースを使用することを 強く推奨 します。 Django 2.2 の新機能 Constraints The new CheckConstraint and UniqueConstraint classes enable adding custom database constraints. Constraints are added to models using the Meta.con ... バックエンドで必要になる可能性のある変更について説明します。 Third-party database backends must implement support for table check constraints or set DatabaseFeatures.supports_table_check_constraints to False . Third party database backends must implement support ... instead of 550e8400e29b41d4a716446655440000 . On SQLite, PositiveIntegerField and PositiveSmallIntegerField now include a check constraint to prevent negative values in the database. If you have existing invalid data and run a migration that recreates a table, ...
https://man.mtool.work/django/6.1/releases/2.2.html
モデルの Meta オプション 7970
モデルの Meta オプション このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 利用可能な Meta オプション abstract Options. abstract abstract = True の場合、このモデルは 抽象 ... o.db import models class Customer ( models . Model ): age = models . IntegerField () class Meta : constraints = [ models . CheckConstraint ( condition = models . Q ( age__gte = 18 ), name = "age_gte_18" ), ] verbose_name Options. verbose_name 人間が読めるオブジ ...
https://man.mtool.work/django/6.1/ref/models/options.html
Django 3.1 リリースノート 7970
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... on for on_delete argument of ForeignKey and OneToOneField emulates the behavior of the SQL constraint ON DELETE RESTRICT . CheckConstraint.check now supports boolean expressions. The RelatedManager.add() , create() , and set() methods now accept callables as va ... 't require resetting sequences. SQLite functions are now marked as deterministic on Python 3.8+. This allows using them in check constraints and partial indexes. The new UniqueConstraint.deferrable attribute allows creating deferrable unique constraints. ページ ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 5.1 リリースノート 7970
Django 5.1 リリースノート 2024年8月7日 Django 5.1 へようこそ! このリリースノートでは、 バージョン 5.1 の新機能 と、Django 5.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... et_3d() を使用してください。 django.urls.register_converter() による既存のコンバータのオーバーライドは非推奨になりました。 CheckConstraint の check キーワード引数は非推奨となり、代わりに condition が推奨されるようになりました。 文書化されていない FileSystemStor ...
https://man.mtool.work/django/6.1/releases/5.1.html
Django 6.0 release notes 7970
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... asave() is removed. The setter for django.contrib.gis.gdal.OGRGeometry.coord_dim is removed. The check keyword argument of CheckConstraint is removed. The get_cache_name() method of FieldCacheMixin is removed. The OS_OPEN_FLAGS attribute of FileSystemStorage is ...
https://man.mtool.work/django/6.1/releases/6.0.html
PREV 1 2 NEXT