... n. actions_on_bottom Controls where on the admin changelist page the actions bar appears. By default, the admin changelist displays actions at the top of the page ( actions_on_top = True; actions_on_bottom = False ). ModelAdmin. actions_selection_counte ... ゾーンサポートが有効 ( USE_TZ = True ) な際に注意すべき点について、ドキュメントを参照してください。 ModelAdmin. empty_value_display この属性は、空( None 、空の文字列、等)のレコードのフィールドに対するデフォルトの表示値をオーバーライドします。デフォルト値 ... は - (ダッシュ)です。たとえば: from django.contrib import admin class AuthorAdmin ( admin . ModelAdmin ): empty_value_display = "-empty-" AdminSite.empty_value_display ですべての admin ページもしくは特定のフィールドに対して empty_value_display をオ ... ... いるのです。今の時点では、 Question はデータベース上に一つしかないはずですね。 Also note the "Add another question" button (displayed as a plus sign) to the right of the "Question" field. Every ForeignKey relationship gets this button for free. When you ... o は各オブジェクトの str() を表示します。しかし、個々のフィールドを表示できた方が便利なこともあります。そのためには、 list_display 管理オプションを使います。これは、オブジェクトのチェンジリストページで表示するフィールド名のリストをカラムとして表示するも ... のです: polls/admin.py class QuestionAdmin ( admin . ModelAdmin ): # ... list_display = [ "question_text" , "pub_date" ] 念のため、 チュートリアル その2 の was_published_recently() メソッドも含めましょう。 po ... ... e_fields で参照されているため、 search_fields を定義する必要があります。 admin.E041 : The value of delete_confirmation_max_display must be a non-negative integer or None . ModelAdmin 管理サイトに登録されている ModelAdmin には、以下のチェックが行われます ... model 属性が必要です。 admin.E106 : <InlineModelAdmin class>.model の値は Model 型でなければなりません。 admin.E107 : list_display の値は、リストまたはタプルでなければなりません。 admin.E108 : list_display[n] の値が <label> を参照していますが、これは <M ... n class> の呼び出し可能なオブジェクトや属性、または <model> の属性、メソッド、フィールドではありません。 admin.E109 : list_display[n] の値は、多対多のフィールドや逆参照外部キーであってはいけません。 admin.E110 : list_display_links の値は、リスト、タプル ... ... s containing two consecutive dots, such as {{ "a..b" }} ( #37257 ). Fixed a regression in Django 6.1 where ModelAdmin.list_display entries that traverse multiple relations using __ could crash or display incorrect values ( #37270 ). Fixed a bug in Djang ... ... ... ausing If-None-Match checks to always return HTTP 200 ( #26024 ). Fixed a regression that caused the "user-tools" items to display on the admin's logout page ( #26035 ). Fixed a crash in the translations system when the current language has no translati ... 0100 to GMT+1200 ( #24980 ). Fixed a regression in the admin's edit related model popup that caused an escaped value to be displayed in the select dropdown of the parent window ( #25997 ). Fixed a regression in 1.8.8 causing incorrect index handling in ... ameter ( #26138 ). Fixed the contrib.gis map widgets when using USE_THOUSAND_SEPARATOR=True ( #20415 ). Made invalid forms display the initial of values of their disabled fields ( #26129 ). ... ... esses with display names longer than 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+ ( #31784 ). ... ... ルドによって設定されます。 BaseGeometryWidget. map_srid 地図で使用されるSRIDコード (デフォルトは4326)。 BaseGeometryWidget. display_raw 主にデバッグのために、現在のジオメトリのシリアライズされた表現を示すテキストエリア入力を表示するかどうかを指定するブー ... ib.gis import forms class MyGeoForm ( forms . Form ): point = forms . PointField ( widget = forms . OSMWidget ( attrs = { "display_raw" : True })) Widget クラス BaseGeometryWidget class BaseGeometryWidget [ソース] これは、サブクラスが必要とするロジックを ... " ], } OSMWidget class OSMWidget [ソース] This widget specialized OpenLayersWidget and uses an OpenStreetMap base layer to display geographic objects on. Attributes are: base_layer New in Django 6.0. osm default_lat default_lon デフォルトの中心緯度と経度 ... ... on PostgreSQL when adding an Index with fields ordering and opclasses ( #30903 ). Restored the ability to override get_FOO_display() ( #30931 ). ... ... elect_related is False (the default), the change list now selects only the foreign key fields specified in ModelAdmin.list_display , rather than all foreign key fields. This should improve performance for models with many foreign key fields. The delete_ ... confirmation_max_display option allows customizing how many objects are displayed on admin delete confirmation pages and inline protected deletion ... shown after the help text and before the field input. Checkboxes are an exception to the above changes and continue to be displayed in their original layout. list_display now uses boolean icons for boolean fields on related models. The new location key ... 2026年10月08日