... 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 admin's navigation sidebar ( #31854 ). Fixe ... session data while upgrading multiple instances of the same project to Django 3.1 ( #31864 ). Adjusted admin's navigation sidebar template to reduce debug logging when rendering ( #31865 ). Fixed a data loss possibility in the select_for_update() . Whe ... when using on reverse relations ( #31952 ). Prevented content overflowing in the admin changelist view when the navigation sidebar is enabled ( #31901 ). ... ... は永遠にキャッシュされます。名前はそのまま使用されるので、変数は使えません。次に例を示します。 {% load cache %} {% cache 500 sidebar %} .. sidebar .. {% endcache %} Sometimes you might want to cache multiple copies of a fragment depending on some dynamic ... data that appears inside the fragment. For example, you might want a separate cached copy of the sidebar used in the previous example for every user of your site. Do this by passing one or more additional arguments, which may b ... g that will uniquely identify the cache fragment when those values are converted to strings: {% load cache %} {% cache 500 sidebar request.user.username %} .. sidebar for logged-in user .. {% endcache %} Argument values converted to strings Because argu ... ... n IsNull() expressions ( #33705 ). Fixed a bug in Django 4.0 where a hidden quick filter toolbar in the admin's navigation sidebar was focusable ( #33725 ). ... ... ter crash when using on a GenericRelation ( #32038 ). Fixed a regression in Django 3.1.1 where the admin changelist filter sidebar would not scroll for a long list of available filters ( #31986 ). ... ... .list_filter allows filtering on empty values (empty strings and nulls) in the admin changelist view. Filters in the right sidebar of the admin changelist view now contain a link to clear all filters. The admin now has a sidebar on larger screens for ea ... sier navigation. It is enabled by default but can be disabled by using a custom AdminSite and setting AdminSite.enable_nav_sidebar to False . Rendering the sidebar requires access to the current request in order to set CSS and ARIA role affordances. Thi ... ... ression in Django 3.1 that caused incorrect textarea layout on medium-sized screens in the admin change form view with the sidebar open ( #32127 ). Fixed a regression in Django 3.0.7 that didn't use Subquery() aliases in the GROUP BY clause ( #32152 ). ... ... ass DecadeBornListFilter ( admin . SimpleListFilter ): # Human-readable title which will be displayed in the # right admin sidebar just above the filter options. title = _ ( "decade born" ) # Parameter for the filter that will be used in the URL query. ... t will appear in the URL query. The second element is the human-readable name for the option that will appear in the right sidebar. """ return [ ( "80s" , _ ( "in the eighties" )), ( "90s" , _ ( "in the nineties" )), ] def queryset ( self , request , qu ... ... href = "style.css" > < title > {% block title %} My amazing site {% endblock %} </ title > </ head > < body > < div id = "sidebar" > {% block sidebar %} < ul > < li >< a href = "/" > Home </ a ></ li > < li >< a href = "/blog/" > Blog </ a ></ li > </ ... head > < link rel = "stylesheet" href = "style.css" > < title > My amazing blog </ title > </ head > < body > < div id = "sidebar" > < ul > < li >< a href = "/" > Home </ a ></ li > < li >< a href = "/blog/" > Blog </ a ></ li > </ ul > </ div > < div ... try. </ p > < h2 > Entry two </ h2 > < p > This is my second entry. </ p > </ div > </ body > </ html > 子テンプレート内で sidebar を定義していないため、親テンプレートの値がそのまま使われていることに留意してください。親テンプレートの {% block %} タグ内の ... ... h" according to the Django security policy . バグ修正 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 ... ... ィールドごとにオーバーライドできます。例については ModelAdmin.empty_value_display を参照してください。 AdminSite. enable_nav_sidebar 大きな画面でナビゲーションサイドバーを表示するかどうかを決定する真偽値。デフォルトでは True に設定されています。 AdminSite ... 新しいモデルインスタンスを追加するための管理用URL is_popup : 現在のページがポップアップウィンドウで表示されるかどうか is_nav_sidebar_enabled : AdminSite.enable_nav_sidebar log_entries : AdminSite.get_log_entries() AdminSite. get_app_list ( request , app_l ... 2026年10月08日