... ith a '/' when APPEND_SLASH=False ( #27238 ). Fixed model form default fallback for CheckboxSelectMultiple , MultiWidget , FileInput , SplitDateTimeWidget , SelectDateWidget , and SplitArrayWidget ( #27186 ). Custom widgets affected by this issue should i ... ... = forms . PasswordInput ( render_value = True )) Clearable default widget for FileField Django 1.3 now includes a ClearableFileInput form widget in addition to FileInput . ClearableFileInput renders with a checkbox to clear the field's value (if the field ... has a value and is not required); FileInput provided no means for clearing an existing file from a FileField . ClearableFileInput is now the default widget for a File ... ox in the rendered form output. To return to the previous rendering (without the ability to clear the FileField ), use the FileInput widget in place of ClearableFileInput . For instance, in a ModelForm for a hypothetical Document model with a FileField na ... ... ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... ... ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... ... ッドを使います。 デフォルトでは、隠されたウィジェットの場合は False を返し、それ以外の場合は True を返します。特別なケースは FileInput と ClearableFileInput で、これらは initial が設定されている場合に False を返し、 CheckboxSelectMultiple は常に False を返し ... まれます。各チェックボックスには、要素のIDを出力するための id_for_label 属性があります。 ファイルアップロード用ウィジェット FileInput class FileInput [ソース] template_name : 'django/forms/widgets/file.html' レンダリング結果: <input type="file" ...> Cleara ... bleFileInput class ClearableFileInput [ソース] template_name : 'django/forms/widgets/clearable_file_input.html' レンダリング結果: <inpu ... ... ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... 数が psycopg 3でクラッシュする Django 4.2 のリグレッション ( #34486 ) を修正しました。 Django 4.2 で、admin 画面の ClearableFileInput のマージンが正しくないリグレッションを修正しました ( #34506 )。 Django 4.2 で、admin サイトのアプリインデックスビューにパン ... ... 68 are mapped to the current century. Date-only formats are removed from the default list for DATETIME_INPUT_FORMATS . The FileInput widget no longer renders with the required HTML attribute when initial data exists. The undocumented django.views.debug.Ex ... ... のメソッド) clear_cache() (ContentTypeManager のメソッド) clear_expired() (backends.base.SessionBase のメソッド) ClearableFileInput (django.forms のクラス) clearsessions django-admin command Client (django.test のクラス) client (Response の属性) (SimpleT ... ing FileExtensionValidator (django.core.validators のクラス) FileField (django.db.models のクラス) (django.forms のクラス) FileInput (django.forms のクラス) filepath_to_uri() (django.utils.encoding モジュール) FilePathField (django.db.models のクラス) (dj ... 2026年10月08日