... ... た。残念ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... dline 関数が psycopg 3でクラッシュする Django 4.2 のリグレッション ( #34486 ) を修正しました。 Django 4.2 で、admin 画面の ClearableFileInput のマージンが正しくないリグレッションを修正しました ( #34506 )。 Django 4.2 で、admin サイトのアプリインデックスビューにパン ... ... delMultipleChoiceField . Fixed QuerySet.count() for union() , difference() , and intersection() queries. ( #28399 ). Fixed ClearableFileInput rendering as a subwidget of MultiWidget ( #28414 ). Custom clearable_file_input.html widget templates will need to adapt f ... ... ( widget = 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 FileField , so existing forms including FileField without assigning a custom widget will n ... t. 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 named document : from django import form ... ... た。残念ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... ... た。残念ながら、 複数のファイルをアップロードする トピックではそれとは違うことを示唆していました。 脆弱性を回避するために、 ClearableFileInput と FileInput フォームウィジェットは、 multiple HTML 属性が設定されている場合に ValueError を発生させるようになりました。例 ... ... lazy() failed to resolve correctly ( #36796 ). Fixed a regression in Django 6.0 where the Widget.use_fieldset attribute of ClearableFileInput was flipped from False to True ( #36829 ). Reverted an undocumented optimization in Django 6.0 that modified permission na ... ... used on the new objects ( #27026 ). Fixed crash of django.views.static.serve() with show_indexes enabled ( #26973 ). Fixed ClearableFileInput to avoid the required HTML attribute when initial data exists ( #27037 ). Fixed annotations with database functions when c ... ... 。 デフォルトでは、隠されたウィジェットの場合は False を返し、それ以外の場合は True を返します。特別なケースは FileInput と ClearableFileInput で、これらは initial が設定されている場合に False を返し、 CheckboxSelectMultiple は常に False を返します。これは、ブラウザ ... eInput class FileInput [ソース] template_name : 'django/forms/widgets/file.html' レンダリング結果: <input type="file" ...> ClearableFileInput class ClearableFileInput [ソース] template_name : 'django/forms/widgets/clearable_file_input.html' レンダリング結果: <inpu ... ... フォルト値は320です( RFC 3696 Section 3 を参照)。 FileField class FileField ( ** kwargs ) [ソース] デフォルトのウィジェット: ClearableFileInput 空の値: None ファイルコンテンツとファイル名を1つのオブジェクトにラッピングした UploadedFile オブジェクトに正規化されます。 ... CharField に対する場合と同様の動作をします。 ImageField class ImageField ( ** kwargs ) [ソース] デフォルトのウィジェット: ClearableFileInput 空の値: None ファイルコンテンツとファイル名を1つのオブジェクトにラッピングした UploadedFile オブジェクトに正規化されます。 ... 2026年10月08日