... することで悪用される可能性がありました。 バグ修正 ¶ QuerySet.values() または values_list() を、複数のフィールドで構成される ForeignObject と共に使用した際に、参照されるフィールドのタプルではなく誤った結果を返していたバグを修正しました( #36431 )。 目次 Django ... 辞書 values リリースノート high セキュリティ 問題 潜在的 脆弱性 細工 kwargs annotate alias 展開 悪用 可能性 list 複数 構成 ForeignObject クイック検索 Last update: 2026年10月09日 « previous | up | next » ... ... dels . CASCADE ) これは、現在 ForeignKey が複合主キーを持つモデルを参照できないためです。 この制限を回避するには、代わりに ForeignObject が使えます: class Foo ( models . Model ): item_order_id = models . CharField ( max_length = 20 ) item_product_id = models ... . IntegerField () item = models . ForeignObject ( OrderLineItem , on_delete = models . CASCADE , from_fields = ( "item_order_id" , "item_product_id" ), to_fields = ( "ord ... er_id" , "product_id" ), ) ForeignObject は ForeignKey によく似ていますが、データベース上にカラム (例: item_id )、外部キー制約、インデックスなどを作成しない点、 on ... ... dels . CASCADE ) これは、現在 ForeignKey が複合主キーを持つモデルを参照できないためです。 この制限を回避するには、代わりに ForeignObject が使えます: class Foo ( models . Model ): item_order_id = models . CharField ( max_length = 20 ) item_product_id = models ... . IntegerField () item = models . ForeignObject ( OrderLineItem , on_delete = models . CASCADE , from_fields = ( "item_order_id" , "item_product_id" ), to_fields = ( "ord ... er_id" , "product_id" ), ) ForeignObject は ForeignKey によく似ていますが、データベース上にカラム (例: item_id )、外部キー制約、インデックスなどを作成しない点、 on ... ... n't support it (MySQL and MariaDB), the fields are marked as deferred to trigger a refresh on subsequent accesses. Using a ForeignObject with multiple from_fields in Model indexes, constraints, or unique_together now emits a system check error. ページネーショ ... ango.db.models.sql.datastructures.Join no longer falls back to get_joining_columns() . The get_joining_columns() method of ForeignObject and ForeignObjectRel is removed. The ForeignObject.get_reverse_joining_columns() method is removed. Support for cx_Oracle ... ... n't support it (MySQL and MariaDB), the fields are marked as deferred to trigger a refresh on subsequent accesses. Using a ForeignObject with multiple from_fields in Model indexes, constraints, or unique_together now emits a system check error. ページネーショ ... ango.db.models.sql.datastructures.Join no longer falls back to get_joining_columns() . The get_joining_columns() method of ForeignObject and ForeignObjectRel is removed. The ForeignObject.get_reverse_joining_columns() method is removed. Support for cx_Oracle ... ... することで悪用される可能性がありました。 バグ修正 ¶ QuerySet.values() または values_list() を、複数のフィールドで構成される ForeignObject と共に使用した際に、参照されるフィールドのタプルではなく誤った結果を返していたバグを修正しました( #36431 )。 目次 Django ... ... . Restored the functionality of the admin's list_editable add and change buttons ( #25903 ). Fixed isnull query lookup for ForeignObject ( #25972 ). Fixed a regression in the admin which ignored line breaks in read-only fields instead of converting them to <b ... ... . Restored the functionality of the admin's list_editable add and change buttons ( #25903 ). Fixed isnull query lookup for ForeignObject ( #25972 ). Fixed a regression in the admin which ignored line breaks in read-only fields instead of converting them to <b ... ... 。 隠された関係のクエリ名のクラッシュに対するシステムチェックを追加しました ( #26162 )。 Fixed a regression for cases where ForeignObject.get_extra_descriptor_filter() returned a Q object ( #26153 ). Fixed regression with an __in=qs lookup for a ForeignKey wit ... ... 。 隠された関係のクエリ名のクラッシュに対するシステムチェックを追加しました ( #26162 )。 Fixed a regression for cases where ForeignObject.get_extra_descriptor_filter() returned a Q object ( #26153 ). Fixed regression with an __in=qs lookup for a ForeignKey wit ... 2026年10月08日