per page, with , order by , clip by
Results of 1 - 9 of about 9 for CompositePrimaryKey (0.005 sec.)
Django 5.2.2 リリースノート 12510
Django 5.2.2 リリースノート 2025年6月4日 Django 5.2.2 では、 5.2.1 における深刻度 "low" のセキュリティの問題1件と、いくつかのバグを修正しました。 CVE-2025-48432: エスケープされていないリクエストのパスを通じた潜在的なログインジェクション 内部 ... onse() 関数は、安全なエンコーディングを用いてすべての位置指定のフォーマット引数をエスケープするようになりました。 バグ修正 CompositePrimaryKey を持つモデルに由来する ForeignObject に対して select_related を使用した際に発生していたクラッシュを修正しました( #36373 ) ... 。 Django 5.2 において、 "pk" を使用して CompositePrimaryKey を持つモデルを参照するサブクエリで、選択された列数が多すぎるまたは少なすぎる場合に ValueError が発生しなかったバグを修正し ... なかったため、Enter キーを押した際にフォーム送信が妨げられるリグレッションを修正しました( #36423 )。 Django 5.2 において、 CompositePrimaryKey を持つモデルで id_list 引数を指定して QuerySet.in_bulk() を呼び出した際に、データベースのパラメータ制限が考慮されていなかっ ...
https://man.mtool.work/django/6.1/releases/5.2.2.html
複合主キー 10605
複合主キー Django では、すべてのモデルに主キーが存在します。デフォルトでは、この主キーは単一のフィールドで構成されます。 ほとんどの場合、単一の主キーで十分です。しかし、データベース設計においては、複数のフィールドからなる主キーが必要になるこ ... ともあります。 複合主キーを使用するには、モデルを定義する際に pk 属性を CompositePrimaryKey に設定します: class Product ( models . Model ): name = models . CharField ( max_length = 100 ) class Order ( models . Mode ... erence = models . CharField ( max_length = 20 , primary_key = True ) class OrderLineItem ( models . Model ): pk = models . CompositePrimaryKey ( "product_id" , "order_id" ) product = models . ForeignKey ( Product , on_delete = models . CASCADE ) order = models . Fo ... に移行したい場合は、利用中のデータベースバックエンドの手順にしたがって操作してください。 複合主キーを設定できたら、モデルに CompositePrimaryKey フィールドを追加してください。これにより、Django はその複合主キーを正しく認識し、適切に扱えるようになります。 主キーフィー ...
https://man.mtool.work/django/6.1/topics/composite-primary-key.html
モデル _meta API 9652
モデル _meta API class Options [ソース] モデルの _meta API は、Django ORM のコアにあります。これにより、ルックアップ、クエリ、フォーム、admin などのシステムの他のパーツは、各モデルの機能を理解できるようになります。API は、各モデルクラスの _ ... キーを構成するフィールドを取得する Options. pk_fields [ソース] モデルの主キーを構成するフィールドのリストを返します。 When a CompositePrimaryKey is defined on a model it will contain all the fields referenced by it. from django.db import models class TenantUser ( mod ... els . Model ): pk = models . CompositePrimaryKey ( "tenant_id" , "id" ) tenant_id = models . IntegerField () id = models . IntegerField () >>> TenantUser . _meta . pk_fiel ...
https://man.mtool.work/django/6.1/ref/models/meta.html
Django 5.2.8 リリースノート 9652
Django 5.2.8 リリースノート 2025年11月5日 Django 5.2.8 fixes one security issue with severity "high", one security issue with severity "moderate", and several bugs in 5.2.7. It also adds compatibility with Python 3.14. CVE-2025-64458: Poten ... ere QuerySet.first() and QuerySet.last() raised an error on querysets performing aggregation that selected all fields of a composite primary key ( #36648 ). Fixed a bug in Django 5.2 where proxy models having a CompositePrimaryKey incorrectly raised a models.E042 s ...
https://man.mtool.work/django/6.1/releases/5.2.8.html
Django 5.2 リリースノート 9005
Django 5.2 リリースノート 2025年4月2日 Django 5.2 へようこそ! このリリースノートでは、 バージョン 5.2 の新機能 と、Django 5.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... は、自動インポートを追加または削除するように カスタマイズすることができます 。 複合主キー 新たに追加された django.db.models.CompositePrimaryKey により、複数のフィールドからなる主キーをテーブルに作成することができるようになりました。 複合主キーを使うには、モデルを定義 ... する際に pk 属性を CompositePrimaryKey で設定します。 from django.db import models class Release ( models . Model ): pk = models . CompositePrimaryKey ( "version ...
https://man.mtool.work/django/6.1/releases/5.2.html
システムチェックフレームワーク 8070
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... フォルトのデータベース値をサポートしていません。 fields.E012 : <expression> は db_default では使用できません。 fields.E013 : CompositePrimaryKey の名前は pk でなければなりません。 fields.E100 : AutoField は primary_key=True を設定する必要があります。 fields.E110 : Bo ... d に対しては効果がありません。 fields.W346 : db_comment は ManyToManyField に影響を与えません。 fields.E347 : フィールドは CompositePrimaryKey を持つモデルに関するリレーション <model> を定義していますが、そのようなリレーションはサポートされていません。 fields.E348 ... .W047 : <database> does not support UniqueConstraint.nulls_distinct . models.E048 : constraints/indexes/unique_together は CompositePrimaryKey <field name> を参照していますが、これらのオプションでは CompositePrimaryKey はサポートされていません。 models.E049 : const ...
https://man.mtool.work/django/6.1/ref/checks.html
Django 6.0 release notes 8070
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 ... date results in no affected rows, instead of a generic django.db.DatabaseError . QuerySet.raw() now supports models with a CompositePrimaryKey . Subqueries returning a CompositePrimaryKey can now be used as the target of lookups other than __in , such as __exact . ...
https://man.mtool.work/django/6.1/releases/6.0.html
モデルフィールドリファレンス 7118
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... ルドは 1 つだけです。この不変条件を維持するため、複合主キーは、すべてのフィールドにこのフラグを True と設定するのではなく、 CompositePrimaryKey を使用して定義しなければなりません。 Changing an object's primary key and saving it does not change the original object in ... ll=True の場合は NullBooleanSelect です。 Field.default が定義されていないときの BooleanField のデフォルト値は None です。 CompositePrimaryKey class CompositePrimaryKey ( * field_names , ** options ) [ソース] 複合主キーを定義するために用いられる仮想的なフィールドで ...
https://man.mtool.work/django/6.1/ref/models/fields.html
索引 6165
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... messages django-admin command compilemessages コマンドラインオプション --exclude --ignore --locale --use-fuzzy -f -i -l -x CompositePrimaryKey (django.db.models のクラス) compress() (MultiValueField のメソッド) Concat (django.db.models.functions のクラス) concrete ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT