Opened 9 years ago

Last modified 9 years ago

#25410 closed Bug

Empty ClearableFileInput raises ValueError — at Version 1

Reported by: vfigueiro Owned by: Tim Graham
Component: Forms Version: dev
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

Having an empty file field raises ValueError whenever the ClearableFileInput widget is rendered in the admin or in a custom form. It prevents the rendering of the form in change mode (works in creation mode).

I guess this started happening on Python 2.7 after #24727 was fixed [5c412dd].

Related ticket: #13327

Change History (2)

by vfigueiro, 9 years ago

Attachment: traceback.txt added

comment:1 by Tim Graham, 9 years ago

Component: UncategorizedForms
Description: modified (diff)
Owner: changed from nobody to Tim Graham
Severity: NormalRelease blocker
Status: newassigned
Triage Stage: UnreviewedAccepted

Confirmed as a regression in 1.9. I'll revert the patch that caused the regression, reopen that ticket for more investigation, and add a test for this issue.

Note: See TracTickets for help on using tickets.
Back to Top