... evaluation via __bool__() . CSP The new csp_nonce_attr template tag renders the CSP nonce attribute on <script> and <link> elements, or renders a Media object's assets with the nonce applied, when the csp() context processor is configured. See Nonce usag ... o.template.context_processors.csp is not configured. CSP nonce attributes are now added on <script> , <style> , and <link> elements in admin templates and all built-in templates when the csp() context processor is configured. See Nonce config for setup i ... tions.binary_placeholder_sql() method now expects a query compiler as an extra positional argument and should return a two-elements tuple composed of an SQL format string and a tuple of associated parameters. The BaseSpatialOperations.get_geom_placeholde ... ... dom value generated per HTTP response. Django supports nonces as a secure way to allow specific inline <script> or <style> elements to execute without relying on 'unsafe-inline' . Nonces are enabled by including the special placeholder NONCE in the relev ... The csp_nonce_attr template tag was added, including support for rendering Media objects. For inline <script> and <style> elements, include the nonce directly using the context variable: < script nonce = " {{ csp_nonce }} " > // This inline JavaScript w ... ill be allowed. </ script > For external <script src="..."> and <link rel="stylesheet"> elements, use the csp_nonce_attr template tag: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < link rel = " ... ... { "context_processors" : [ # ... "django.template.context_processors.csp" , ], }, }, ] In your templates, add the nonce to elements that require it: For inline <style> or <script> tags, use the csp_nonce context variable directly: < style nonce = " {{ cs ... }} " > // This inline JavaScript will be allowed. </ script > For external <script src="..."> and <link rel="stylesheet"> elements, use the csp_nonce_attr template tag: < script src = "/path/to/script.js" {% csp_nonce_attr %} ></ script > < link rel = " ... ... ial-of-service attack due to quadratic time complexity when deserializing crafted documents containing many nested invalid elements. The internal helper django.core.serializers.xml_serializer.getInnerText() previously accumulated inner text inefficiently ... ... ial-of-service attack due to quadratic time complexity when deserializing crafted documents containing many nested invalid elements. The internal helper django.core.serializers.xml_serializer.getInnerText() previously accumulated inner text inefficiently ... ... ial-of-service attack due to quadratic time complexity when deserializing crafted documents containing many nested invalid elements. The internal helper django.core.serializers.xml_serializer.getInnerText() previously accumulated inner text inefficiently ... ... ed.root_attributes(self) ルートフィード要素 ( feed / channel ) に追加する属性の dict を返します。 SyndicationFeed.add_root_elements(self, handler) ルートフィード要素 ( feed / channel ) 内に要素を追加するためのコールバックです。 handler はPythonの組み込み ... dict を返します。引数の item は、 SyndicationFeed.add_item() に渡されるすべてのデータの辞書です。 SyndicationFeed.add_item_elements(self, handler, item) 各アイテム ( item / entry ) 要素に要素を追加するためのコールバックです。 handler と item は上記の通り ... () . root_attributes () attrs [ "xmlns:itunes" ] = "http://www.itunes.com/dtds/podcast-1.0.dtd" return attrs def add_root_elements ( self , handler ): super () . add_root_elements ( handler ) handler . addQuickElement ( "itunes:explicit" , "clean" ) 完全 ... ... グ修正 Fixed a visual regression in Django 6.0 that caused the admin filter sidebar to wrap below the changelist when filter elements contained long text ( #36850 ). Fixed a visual regression in Django 6.0 for admin form fields grouped under a <fieldset> a ... ... ble_by() method allow limiting the columns that can be sorted in the change list page. The admin_order_field attribute for elements in ModelAdmin.list_display may now be a query expression. The new ModelAdmin.get_deleted_objects() method allows customizi ... syntax rather than XHTML's multiple="multiple" . HTML rendered by form widgets no longer includes a closing slash on void elements, e.g. <br> . This is incompatible within XHTML, although some widgets already used aspects of HTML5 such as boolean attrib ... ... wo releases we plan to switch completely to the new forms system, and deprecate and remove the old system. There are three elements to this transition: We've copied the current django.forms to django.oldforms . This allows you to upgrade your code now ra ... 2026年10月08日