1
0
mirror of https://github.com/django/django.git synced 2025-03-14 03:10:45 +00:00

22 Commits

Author SHA1 Message Date
Johannes Maron
3d7235c67b Refs -- Made ClearableFileInput preserve "Clear" checked attribute when form is invalid. 2024-03-14 14:03:14 +01:00
Mariusz Felisiak
fb4c55d9ec Fixed CVE-2023-31047, Fixed -- Prevented potential bypass of validation when uploading multiple files using one form field.
Thanks Moataz Al-Sharida and nawaik for reports.

Co-authored-by: Shai Berger <shai@platonix.com>
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-05-03 13:42:00 +02:00
Marcelo Galigniana
8a6c0203c4 Fixed -- Made ClearableFileInput preserve "Clear" checked attribute when form is invalid. 2023-04-21 07:48:27 +02:00
Neeraj Kumar
9942f3fb49 Fixed -- Fixed VariableDoesNotExist when rendering ClearableFileInput. 2022-08-25 07:52:36 +02:00
David
c8459708a7 Refs -- Added use_fieldset to Widget. 2022-03-30 16:28:14 +02:00
Mariusz Felisiak
7119f40c98 Refs -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
django-bot
9c19aff7c7 Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
Carles Pina
e46c2326c8 Fixed -- Fixed rendering of disabled AdminFileWidget and ClearableFileInput. 2020-06-01 12:25:25 +02:00
David Smith
5cc2c63f90
Fixed typo in tests/forms_tests/widget_tests/test_clearablefileinput.py docstring. 2020-03-11 08:50:51 +01:00
Jon Dufresne
8d76443aba Fixed -- Changed django.utils.html.escape()/urlize() to use html.escape()/unescape(). 2019-04-25 15:09:07 +02:00
Jon Dufresne
ff05de760c Fixed -- Removed closing slash from HTML void tags. 2018-01-21 02:09:10 -05:00
Roman Selivanov
d4da39685b Fixed -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget. 2017-07-19 14:28:06 -04:00
Tim Graham
4353640ea9 Fixed -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default. 2017-02-06 20:31:04 -05:00
Vytis Banaitis
d1bab24e01 Refs , -- Removed obsolete mentions of unicode. 2017-01-26 08:19:27 -05:00
Simon Charette
cecc079168 Refs -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
Claude Paroz
f3c43ad1fd Refs -- Removed python_2_unicode_compatible decorator usage 2017-01-18 13:44:34 +01:00
Jon Dufresne
fab46ce6f5 Fixed -- Prevented required attribute on ClearableFileInput when initial data exists. 2016-08-12 13:59:01 -04:00
Jon Dufresne
4f336f6652 Fixed -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
Tim Graham
55c3133df8 Simplified a ClearableFileInput test. 2016-05-14 10:31:32 -04:00
Berker Peksag
043383e3f3 Fixed -- Prevented ClearableFileInput from masking exceptions on Python 2 2016-02-15 22:51:46 +02:00
Tim Graham
7cb3a48843 Fixed -- Fixed empty ClearableFileInput crash on Python 2.
Reverted "Fixes  -- Prevented ClearableFileInput from masking
exceptions on Python 2" and added a regression test.

This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
2015-09-23 10:26:19 -04:00
Preston Timmons
4c30fa905d Rewrote form widget tests as proper unittests.
This is preparation for landing the template-based widget rendering
patch and goes a long way to making these tests more useful for future
development. The old doctest heritage is strong here.
2015-08-31 23:03:55 -05:00