Opened 9 years ago
Closed 9 years ago
#25410 closed Bug (fixed)
Empty ClearableFileInput raises ValueError
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 )
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 in 5c412dd8a724b263489c1bd7a2fea381460665d7.
Related ticket: #13327
Attachments (1)
Change History (5)
by , 9 years ago
Attachment: | traceback.txt added |
---|
comment:1 by , 9 years ago
Component: | Uncategorized → Forms |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Severity: | Normal → Release blocker |
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 9 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
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.