ForeignKeyRawIdWidget.label_and_url_for_value does not catch UUIDField ValidationError
The UUIDField was recently changed where get_db_prep_value now calls to_python which does not raise a ValueError but a ValidationError instead.
https://github.com/django/django/commit/2f9861d823620da7ecb291a8f005f53da12b1e89
When an user enters an invalid UUID in the raw id field, the ValidationError is not caught in ForeignKeyRawIdWidget.label_and_url_for_value as it is expecting a ValueError and not a ValidationError.
Change History
(8)
| Has patch: |
set
|
| Needs tests: |
set
|
| Owner: |
changed from nobody to Tim Graham
|
| Status: |
new → assigned
|
| Triage Stage: |
Unreviewed → Accepted
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
PR