Commit 67c0733
authored
Avoid server error in FlexibleImageWidget validation (#4381)
Fix error in `FlexibleImageWidget.decompress()` due to unexpected value.
This now properly raises a "field required" validation error on the
field.
The possible data returned from the possible widgets of
`FlexibleImageWidget` was not completely tested. This adds a test where
we extract the form data from the response of the flexible image widget
for each of the possible options the user can select.
Closes #43121 parent ec46c8a commit 67c0733
4 files changed
Lines changed: 256 additions & 154 deletions
File tree
- app
- grandchallenge/cases
- tests
- algorithms_tests
- cases_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments