... ションは ModelAdmin サブクラスで定義します: from django.contrib import admin class AuthorAdmin ( admin . ModelAdmin ): date_hierarchy = "pub_date" ModelAdmin. actions チェンジリストページで有効化するアクションのリストです。詳細は 管理アクション を参照してく ... す。デフォルトでは、admin チェンジリストは表示するようになっています ( actions_selection_counter = True )。 ModelAdmin. date_hierarchy date_hierarchy をモデル内の DateField か DateTimeField の名前にセットすると、チェンジリストのページがそのフィールドによる日 ... 付ベースのドリルダウンナビゲーションを含むようになります。 実装例: date_hierarchy = "pub_date" __ ルックアップを使用して、関連するモデルのフィールドを指定することもできます。たとえば: date_hierarchy = "au ... ... differentiated into a number of subclasses, and each will log to a matching named logger under the django.security logging hierarchy. Along with this change, a handler400 mechanism and default view are used whenever a SuspiciousOperation reaches the WSGI ... s() raises an error if it's used on DateTimeField when time zone support is active. Use QuerySet.datetimes() instead. date_hierarchy requires time zone definitions The date_hierarchy feature of the admin now relies on QuerySet.datetimes() when it's used o ... ... e deletion process of the delete view and the "delete selected" action. The actions.html , change_list_results.html , date_hierarchy.html , pagination.html , prepopulated_fields_js.html , search_form.html , and submit_line.html templates can now be overri ... nflicts with the class given to model fields named "box". Since the admin's actions.html , change_list_results.html , date_hierarchy.html , pagination.html , prepopulated_fields_js.html , search_form.html , and submit_line.html templates can now be overri ... ... ドを処理する際に LocaleMiddleware がクラッシュするリグレッションを修正しました ( #35627 )。 Django 5.0 で、 ModelAdmin.date_hierarchy が DateField または DateTimeField の output_field を持つ GeneratedField であった場合にシステムチェックがクラッシュするバグ ... ... e. 参考 The following ModelAdmin options allow further customization of change lists: list_per_page , search_fields , date_hierarchy , and list_display . 管理サイトのルック & フィールをカスタマイズする 管理サイトの上部には「Django 管理サイト (Django admin ... ... admin を通じて編集できません。 admin.E126 : search_fields の値はリストまたはタプルでなければいけません。 admin.E127 : date_hierarchy の値は <field name> を参照していますが、Field を参照していません。 admin.E128 : date_hierarchy の値は DateField または Dat ... ... o us, however, query string lookup arguments in the admin must be for fields or relations specified in list_filter or date_hierarchy . Deleting a model doesn't delete associated files In earlier Django versions, when a model instance containing a FileFiel ... ... n level. Nested directives (for example, methods inside a class) require an additional 4 spaces of indentation to maintain hierarchy. Field lists (such as :param: , :returns: , etc.) must align with the directive's content level. 例: .. class :: MyClass A ... ... Ref を使って外部のクエリセットからフィールドを参照することができます。 マイナーな機能 django.contrib.admin ModelAdmin.date_hierarchy はリレーションシップを通じてフィールドを参照できるようになりました。 新たな ModelAdmin.get_exclude() フックによって、リクエ ... ... forbidden as this creates ambiguity in the expected model behavior. In addition, clashing fields in the model inheritance hierarchy result in a system check error. For example, if you use multi-inheritance, you need to define custom primary key fields on ... 2026年10月08日