... ed into the admin, presenting an exploitation vector for XSS attacks. In this vulnerability, every model attribute used in readonly_fields that is not an actual model field (e.g. a property ) will fail to be escaped even if that attribute is not marked a ... ... の例では、指定したフィールド ( url 、 title 、 content ) だけが (結果として) フォーム上で表示されます。 fields は ModelAdmin.readonly_fields で定義される値を持つことができ、読み取り専用で表示されます。 より複雑なレイアウトを作るには、 fieldsets オプションを ... が、呼び出し可能オブジェクトや関連フィールドの __ ルックアップは受け付けません。モデルおよびモデル管理クラスのメソッド名は、 readonly_fields にリストされている場合にのみ使用されます。 1 つの行に複数のフィールドを表示するには、タプルで囲んでください。この例 ... 、かつ editable=True が設定されている各フィールドを、モデル内で定義された順序で単一のフィールドセットに表示します。その後に readonly_fields で定義されたフィールドを表示します。 ModelAdmin. fieldsets admin の "add" と "change" ページのレイアウトをコントロー ... ... l such as 'auth.user' ( #33515 ). Fixed a regression in Django 4.0 that caused a crash when rendering invalid inlines with readonly_fields in the admin ( #33547 ). ... ... n using an __in lookup inside a Case expression ( #26071 ). Fixed a crash when using a reverse OneToOneField in ModelAdmin.readonly_fields ( #26060 ). Fixed a regression in Django 1.8.5 that broke copying a SimpleLazyObject with copy.copy() ( #26122 ). F ... ... compile-time limit to over 2000, such as Debian ( #26063 ). Fixed a crash when using a reverse OneToOneField in ModelAdmin.readonly_fields ( #26060 ). Fixed a crash when calling the migrate command in a test case with the available_apps attribute pointin ... ... nt locale. Django will also use localized formats when parsing data in forms. See 表示形式のローカライズ for more details. readonly_fields in ModelAdmin django.contrib.admin.ModelAdmin.readonly_fields has been added to enable non-editable fields in add/c ... ... す。 admin.E033 : ordering の値は <field name> を参照していますが、これは <model> のフィールドではありません。 admin.E034 : readonly_fields の値は、リストまたはタプルでなければなりません。 admin.E035 : readonly_fields[n] の値は <field_name> を指し、それは ... ... new display() decorator allows for easily adding options to custom display functions that can be used with list_display or readonly_fields . Likewise, the new action() decorator allows for easily adding options to action functions that can be used with a ... lid locales specified using makemessages --locale option, when they contain hyphens ( '-' ). The django.contrib.auth.forms.ReadOnlyPasswordHashField form field is now disabled by default. Therefore UserChangeForm.clean_password() is no longer required to ... ... etail.SingleObjectMixin のメソッド) (django.views.generic.list.MultipleObjectMixin のメソッド) (ModelAdmin のメソッド) get_readonly_fields() (ModelAdmin のメソッド) get_redirect_field_name() (AccessMixin のメソッド) (LoginRequiredMiddleware のメソッド) g ... のメソッド) readable() (HttpResponse のメソッド) readline() (HttpRequest のメソッド) readlines() (HttpRequest のメソッド) readonly_fields (ModelAdmin の属性) ready (apps の属性) READY (TaskResultStatus の属性) ready() (AppConfig のメソッド) reason_phras ... ... 換えられ、ヘルプテキスト内にリストを含められるようになりました。 読み取り専用のフィールドが <p>...</p> ではなく <div class="readonly">...</div> でラップされるようになり、どんな種類の HTML でもフィールドのコンテンツとして使えるようになりました。 テンプレー ... 2026年10月08日