[Django] #34488: ClearableFileInput widget forgets "Clear" selection when form is not valid

46 views
Skip to first unread message

Django

unread,
Apr 13, 2023, 8:53:54 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Keywords: admin, forms,
Triage Stage: | ClearableFileInput
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
ClearableFileInput widget forgets "Clear" selection when form is not
valid, that causes file would not be deleted once when form is valid
again. This can be inconvinient, especially for forms with many fields.

To reproduce:

1. Choose admin for any model instance where attachment is not required
and has some validation,
2. check "Clear" next to the attachment, and change the form, so
validation would fail,
3. Save form, validation error would occur, attachment and "Clear" would
be empty
4. make form valid again and Save, attachment woult not be cleared

(I am attaching example screenshots)

--
Ticket URL: <https://code.djangoproject.com/ticket/34488>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 13, 2023, 8:54:15 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:

Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-before.png" added.

initial state

Django

unread,
Apr 13, 2023, 8:55:15 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-error.png" added.

validation error occurs (ClearableFileInput has no file and has no Clear
checkbox)

Django

unread,
Apr 13, 2023, 8:55:48 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-success.png" added.

File is not removed after successful validation and saving

Django

unread,
Apr 13, 2023, 8:57:19 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by bmihelac:

Old description:

> ClearableFileInput widget forgets "Clear" selection when form is not

> valid, that causes file would not be deleted once when form is valid
> again. This can be inconvinient, especially for forms with many fields.
>
> To reproduce:
>
> 1. Choose admin for any model instance where attachment is not required
> and has some validation,
> 2. check "Clear" next to the attachment, and change the form, so
> validation would fail,
> 3. Save form, validation error would occur, attachment and "Clear" would
> be empty
> 4. make form valid again and Save, attachment woult not be cleared
>
> (I am attaching example screenshots)

New description:

ClearableFileInput widget forgets "Clear" selection when form is not

valid, that causes file would not be deleted once when form is valid
again. This can be inconvinient, especially for forms with many fields.

To reproduce:

1. Choose admin for any model instance where attachment is not required
and has some validation,
2. check "Clear" next to the attachment, and change the form, so
validation would fail,
3. Save form, validation error would occur, attachment and "Clear" would
be empty
4. make form valid again and Save, attachment woult not be cleared

(I am attaching example screenshots)

[[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
file-input-before.png)]]

[[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
file-input-validation-error.png)]]

[[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
file-input-validation-success.png)]]

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:1>

Django

unread,
Apr 13, 2023, 8:58:31 AM4/13/23
to django-...@googlegroups.com

Old description:

> [[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
> file-input-before.png)]]
>
> [[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
> file-input-validation-error.png)]]
>
> [[Image(https://code.djangoproject.com/attachment/ticket/34488/clearable-
> file-input-validation-success.png)]]

New description:

ClearableFileInput widget forgets "Clear" selection when form is not
valid, that causes file would not be deleted once when form is valid
again. This can be inconvinient, especially for forms with many fields.

To reproduce:

1. Choose admin for any model instance where attachment is not required
and has some validation,
2. check "Clear" next to the attachment, and change the form, so
validation would fail,
3. Save form, validation error would occur, attachment and "Clear" would
be empty
4. make form valid again and Save, attachment woult not be cleared

(I am attaching example screenshots)

[[https://code.djangoproject.com/attachment/ticket/34488/clearable-file-
input-before.png]]

[[https://code.djangoproject.com/attachment/ticket/34488/clearable-file-
input-validation-error.png]]

[[https://code.djangoproject.com/attachment/ticket/34488/clearable-file-
input-validation-success.png]]

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:2>

Django

unread,
Apr 13, 2023, 9:01:57 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-before.png" added.

initial state

Django

unread,
Apr 13, 2023, 9:01:58 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-before.png" removed.

Django

unread,
Apr 13, 2023, 9:02:03 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-error.2.png" added.

Django

unread,
Apr 13, 2023, 9:02:20 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-error.png" added.

validation error occurs (ClearableFileInput has no file and has no Clear
checkbox)

--

Django

unread,
Apr 13, 2023, 9:02:20 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-error.png" removed.

Django

unread,
Apr 13, 2023, 9:02:26 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-success.png" removed.

File is not removed after successful validation and saving

--

Django

unread,
Apr 13, 2023, 9:02:26 AM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "clearable-file-input-validation-success.png" added.

Django

unread,
Apr 13, 2023, 10:58:35 PM4/13/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Bakdolot
Type: Bug | Status: assigned

Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bakdolot):

* owner: nobody => Bakdolot
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:3>

Django

unread,
Apr 14, 2023, 1:29:46 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov

Type: Bug | Status: assigned
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Baha Sdtbekov):

Hello, could you please share your models, forms and admin?
Because everything works fine for me.

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:4>

Django

unread,
Apr 14, 2023, 2:09:17 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate

Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: assigned => closed
* resolution: => duplicate


Comment:

Duplicate of #19215 (fixed in c0fc1b5302f5d9d82e2255fb5758321fbac34949,
Django 4.2+).

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:5>

Django

unread,
Apr 14, 2023, 2:15:21 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "django41-c.webm" added.

Django

unread,
Apr 14, 2023, 2:15:30 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bmihelac):

* Attachment "django42-c.webm" added.

Django

unread,
Apr 14, 2023, 2:17:16 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by bmihelac):

Hi Basha,

I have created minimum app

https://github.com/bmihelac/django-34488

credentials are admin:test

Please note that app behaves differently in Django 4.1.x and Django 4.2.x
(as you can see on screencast below or try yourself). Django 4.2 still
forget clear checkbox, but at least checkbox is shown.


[https://code.djangoproject.com/attachment/ticket/34488/django41-c.webm]
[https://code.djangoproject.com/attachment/ticket/34488/django42-c.webm]

let me know if anything else is needed

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:6>

Django

unread,
Apr 14, 2023, 2:25:07 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by bmihelac):

Replying to [comment:5 Mariusz Felisiak]:


> Duplicate of #19215 (fixed in c0fc1b5302f5d9d82e2255fb5758321fbac34949,
Django 4.2+).

It still forgot Clear choice on validation error in Django 4.2 (this is
visible in
https://code.djangoproject.com/attachment/ticket/34488/django42-c.webm
screencast)

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:7>

Django

unread,
Apr 14, 2023, 2:41:59 AM4/14/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Marcelo Galigniana (added)


Comment:

Replying to [comment:7 bmihelac]:


> Replying to [comment:5 Mariusz Felisiak]:
> > Duplicate of #19215 (fixed in
c0fc1b5302f5d9d82e2255fb5758321fbac34949, Django 4.2+).
>
> It still forgot Clear choice on validation error in Django 4.2 (this is
visible in
https://code.djangoproject.com/attachment/ticket/34488/django42-c.webm
screencast)

"Clear" is always unchecked, I'm not sure if we should change this.
Marcelo, what do you think?

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:8>

Django

unread,
Apr 16, 2023, 6:01:35 PM4/16/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
| Sdtbekov
Type: Bug | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: admin, forms, | Triage Stage:
ClearableFileInput | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* Attachment "ticket_34488_mgaligniana.jpeg" added.

When do a submit and validation error occurs, we persist the "invalid"
data in the form. I think keep the checkbox checked would be the same
behaviour.

Django

unread,
Apr 17, 2023, 12:09:54 AM4/17/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Baha
Type: | Sdtbekov
Cleanup/optimization | Status: new

Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage: Accepted
ClearableFileInput |

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: closed => new
* type: Bug => Cleanup/optimization
* resolution: duplicate =>
* stage: Unreviewed => Accepted


Comment:

> When do a submit and validation error occurs, we persist the "invalid"
data in the form. I think keep the checkbox checked would be the same
behaviour.

Agreed. Would you like to prepare a patch?

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:9>

Django

unread,
Apr 18, 2023, 7:52:48 AM4/18/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned

Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage: Accepted
ClearableFileInput |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* owner: Baha Sdtbekov => Marcelo Galigniana


* status: new => assigned


Comment:

Sure!

I see Baha Sdtbekov took the owner 4 days ago. I'm going to assign it to
me but in case you were been working on it, please let me know!

Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:10>

Django

unread,
Apr 20, 2023, 4:05:02 AM4/20/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage: Accepted
ClearableFileInput |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1
* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/16785 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:11>

Django

unread,
Apr 20, 2023, 9:37:43 PM4/20/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage: Accepted
ClearableFileInput |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:12>

Django

unread,
Apr 21, 2023, 1:51:09 AM4/21/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: assigned
Component: Forms | Version: 4.1
Severity: Normal | Resolution:
Keywords: admin, forms, | Triage Stage: Ready for
ClearableFileInput | checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:13>

Django

unread,
Apr 21, 2023, 2:38:50 AM4/21/23
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: fixed

Keywords: admin, forms, | Triage Stage: Ready for
ClearableFileInput | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed

* resolution: => fixed


Comment:

In [changeset:"8a6c0203c4e92908c2b26ba54feba4ce7e76d081" 8a6c0203]:
{{{
#!CommitTicketReference repository=""
revision="8a6c0203c4e92908c2b26ba54feba4ce7e76d081"
Fixed #34488 -- Made ClearableFileInput preserve "Clear" checked attribute
when form is invalid.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:14>

Django

unread,
Mar 14, 2024, 3:37:43 PM3/14/24
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: fixed
Keywords: admin, forms, | Triage Stage: Ready for
ClearableFileInput | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"3d7235c67b5b0569890411eeba8db2b1e02c89c4" 3d7235c]:
{{{#!CommitTicketReference repository=""
revision="3d7235c67b5b0569890411eeba8db2b1e02c89c4"
Refs #34488 -- Made ClearableFileInput preserve "Clear" checked attribute
when form is invalid.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:15>

Django

unread,
May 15, 2025, 12:02:15 PMMay 15
to django-...@googlegroups.com
#34488: ClearableFileInput widget forgets "Clear" selection when form is not valid
-------------------------------------+-------------------------------------
Reporter: bmihelac | Owner: Marcelo
Type: | Galigniana
Cleanup/optimization | Status: closed
Component: Forms | Version: 4.1
Severity: Normal | Resolution: fixed
Keywords: admin, forms, | Triage Stage: Ready for
ClearableFileInput | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by GitHub <noreply@…>):

In [changeset:"883ce03e43b8c6b47f3732f00f4386be789445c8" 883ce03e]:
{{{#!CommitTicketReference repository=""
revision="883ce03e43b8c6b47f3732f00f4386be789445c8"
Refs #34488 -- Made test files path resolution independent of current
working directory in ClearableFileInput selenium tests.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34488#comment:16>
Reply all
Reply to author
Forward
0 new messages