... ょう。デフォルトでは、このアクションは "Make published "としてアクションリストに表示されます。しかし、 make_published 関数に action() デコレータを使用することで、より良い、人にやさしい名前をつけることができます: from django.contrib import admin ... @admi ... n . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . ... ンとその登録を含む admin.py は次のようになります: from django.contrib import admin from myapp.models import Article @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . ... ... layout. list_display now uses boolean icons for boolean fields on related models. The new location keyword argument of the action() decorator specifies which admin views the action is available on. The action is available on the admin change list page ... by default. It can also be available on the admin change form. See Controlling where actions are available for details. The new description_plural keyword argument of the action() decorator specifies a human-readab ... le description for actions on the admin change list page. Defaults to the description value. This is useful when the action is available on both the ... ... ョンが SQLite の OPTIONS でサポートされるようになり、接続時に設定する PRAGMA オプション を指定できるようになりました。 "transaction_mode" オプションが SQLite の OPTIONS でサポートされるようになり、 トランザクションの動作 を指定できるようになりました。 "p ... HTTPメソッドに対してクエリ文字列を簡単に設定できるようになりました。 self . client . post ( "/items/1" , query_params = { "action" : "delete" }) await self . async_client . post ( "/items/1" , query_params = { "action" : "delete" }) 新しい SimpleTestCa ... giref の最小サポートバージョンが 3.7.0 から 3.8.1 に引き上げられました。 To improve performance, the delete_selected admin action now uses QuerySet.bulk_create() when creating multiple LogEntry objects. As a result, pre_save and post_save signals for L ... ... atedManager のメソッド) acreate_superuser() (models.UserManager のメソッド) acreate_user() (models.UserManager のメソッド) Action (django.contrib.admin のクラス) action() (django.contrib.admin モジュール) action_flag (LogEntry の属性) action_time (LogE ... ntry の属性) ActionLocation (django.contrib.admin のクラス) actions (ModelAdmin の属性) actions_on_bottom (ModelAdmin の属性) actions_on_top ( ... ModelAdmin の属性) actions_selection_counter (ModelAdmin の属性) activate() (django.utils.timezone モジュール) (django.utils.translation モジュール) ... ... elAdmin will raise ValueError if its get_list_select_related() method returns True . Support for overriding ModelAdmin.get_actions() without the new action_location parameter will be removed. Support for unpacking or indexing the dictionary values of t ... he ModelAdmin.get_actions() return value will be removed. Use Action attributes instead. Support for overriding ModelAdmin.get_action_choices() wit ... hout the new action_location parameter will be removed. The django.db.transaction.savepoint() alias to django.db.transaction.savepoint_create( ... ... had the system's standard umask rather than 0o077 (no group or others permissions). バグ修正 Fixed wrapping of translated action labels in the admin's navigation sidebar for East Asian languages ( #31853 ). Fixed wrapping of long model names in the ad ... ... インスタンス。これは sender のインスタンス、または ManyToManyField が関連づけられているクラスのインスタンスのいずれかです。 action リレーションに対して行われた更新の種類を表す文字列です。次のいずれかの値を取ります。 "pre_add" リレーションにオブジェクトが ... 数は、次の通りです: 引数 値 sender Pizza.toppings.through (中間の m2m クラス) instance p (変更されている Pizza インスタンス) action "pre_add" (その後に別のシグナルで "post_add" が続く) reverse False ( Pizza には ManyToManyField が含まれているため、この呼 ... は以下の通りです: 引数 値 sender Pizza.toppings.through (中間の m2m クラス) instance t (変更されている Topping インスタンス) action "pre_remove" (その後に別のシグナルとして "post_remove" が続きます) reverse True ( Pizza は ManyToManyField を含んでいるため ... ... constraints, you will need to manually drop the old constraint prior to invoking reset . Test cases are now run in a transaction Django 1.1 runs tests inside a transaction, allowing better test performance (see test performance improvements for detail ... s). This change is slightly backwards incompatible if existing tests need to test transactional behavior, if they rely on invalid assumptions about the test environment, or if they require a specific test case orderi ... ng. For these cases, TransactionTestCase can be used instead. This is a just a quick fix to get around test case errors revealed by the new rollback approa ... ... on user input (commonly, a "next" parameter in a querystring indicating where to redirect upon successful completion of an action). One or more modules are known to an attacker to exist on the server's Python import path, which perform code execution w ... ... on user input (commonly, a "next" parameter in a querystring indicating where to redirect upon successful completion of an action). One or more modules are known to an attacker to exist on the server's Python import path, which perform code execution w ... 2026年10月08日