... たは非表示フィールド関連の全エラー。 template_name_label Form. template_name_label テンプレートは、 BoundField.label_tag() / legend_tag() を呼び出す際に使用されるフィールドの <label> をレンダリングするために使用されます。この属性をオーバーライドするか、デ ... ォルトの as_div() は as_p() , as_table() , as_ul() バージョンよりも推奨されます。なぜなら、このテンプレートは <fieldset> と <legend> を実装しており、関連する入力をグループ化し、スクリーンリーダーユーザがナビゲートしやすいからです。 各ヘルパーは、適切なテ ... el> ... >>> f [ "subject" ] . label_tag () <label class="required" for="id_subject">Subject:</label> >>> f [ "subject" ] . legend_tag () <legend class="required" for="id_subject">Subject:</legend> >>> f [ "subject" ] . label_tag ( attrs = { "class" : " ... ... タに現れないため、ユーザーが値を送信したかどうか不明だからです。 use_fieldset レンダリング時にウィジェットが <fieldset> と <legend> でグループ化されるべきかを識別するための属性です。デフォルトは False ですが、 CheckboxSelectMultiple , RadioSelect , Mult ... プ処理します。ウィジェットとして RadioSelect を使用するフィールド beatles を持つフォーム myform を例にとると: < fieldset > < legend > {{ myform.beatles.label }} </ legend > {% for radio in myform.beatles %} < div class = "myradio" > {{ radio }} </ div > ... {% endfor %} </ fieldset > これにより、以下のHTMLが生成されます: < fieldset > < legend > Radio buttons </ legend > < div class = "myradio" > < label for = "id_beatles_0" >< input id = "id_beatles_0" name = "be ... ... style is recommended over the existing as_table() , as_p() and as_ul() styles, as the template implements <fieldset> and <legend> to group related inputs and is easier for screen reader users to navigate. The div-based output will become the default r ... setting form_template_name to "django/forms/p.html" and formset_template_name to "django/forms/formsets/p.html" . The new legend_tag() allows rendering field labels in <legend> tags via the new tag argument of label_tag() . The new edit_only argument ... set and Widget.use_fieldset attributes help to identify widgets where its inputs should be grouped in a <fieldset> with a <legend> . The error_messages argument for BaseFormSet now allows customizing error messages for invalid number of forms by passin ... ... えば、デフォルトの label_suffix は次のようになります。 < label for = "id_contact_email" > Contact email: </ label > {{ field.legend_tag }} field.label_tag と似ていますが、 <label> の代わりに <legend> タグを使用します。複数の入力を <fieldset> でラップした ... ldset }} この属性は、フォームフィールドのウィジェットが複数の入力を含み、アクセシビリティを向上させるために <fieldset> と <legend> で意味的にグループ化されるべき場合に True になります。テンプレートでの使用例: {% if field.use_fieldset %} < fieldset > {% ... if field.label %}{{ field.legend_tag }}{% endif %} {% else %} {% if field.label %}{{ field.label_tag }}{% endif %} {% endif %} {{ field }} {% if field.use_ ... ... polls/detail.html < form action = " {% url 'polls:vote' question.id %} " method = "post" > {% csrf_token %} < fieldset > < legend >< h1 > {{ question.question_text }} </ h1 ></ legend > {% if error_message %} < p >< strong > {{ error_message }} </ stro ... ... ession in an IN lookup is likely unintended, since SQL NULL cannot match any value. Fixed a regression in Django 6.1 where legend_tag() with a custom attrs could add the required_css_class more than once ( #37463 ). Added compatibility for oracledb 26. ... ... n "Control", or "Command" on a Mac, to select more than one. (or its translation to the active locale) imposed as the help legend shown along them if neither model nor form help_text attributes were specified by the user (or this string was appended to ... ... モジュール) Least (django.db.models.functions のクラス) left field lookup type Left (django.db.models.functions のクラス) legend_tag() (BoundField のメソッド) length template filter Length (django.contrib.gis.db.models.functions のクラス) (django.db.m ... 2026年10月08日