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`.
--
Ticket URL: <https://code.djangoproject.com/ticket/29094>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "29094.patch" added.
* has_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:1>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:2>
* owner: nobody => Tim Graham
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:3>
* needs_tests: 1 => 0
Comment:
[https://github.com/django/django/pull/9647 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"552abffab16cbdff571486b683e7e7ef12e46066" 552abffa]:
{{{
#!CommitTicketReference repository=""
revision="552abffab16cbdff571486b683e7e7ef12e46066"
Fixed #29094 -- Fixed crash when entering an invalid uuid in
ModelAdmin.raw_id_fields.
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
Thanks Carel Burger for the report and fix.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"1bd45e24584286075f4ff6cbeff2437c77e2c762" 1bd45e2]:
{{{
#!CommitTicketReference repository=""
revision="1bd45e24584286075f4ff6cbeff2437c77e2c762"
[2.0.x] Fixed #29094 -- Fixed crash when entering an invalid uuid in
ModelAdmin.raw_id_fields.
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
Thanks Carel Burger for the report and fix.
Backport of 552abffab16cbdff571486b683e7e7ef12e46066 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"1c9233b1b9f903e4e2cb20a724e8c22aee4aacb2" 1c9233b1]:
{{{
#!CommitTicketReference repository=""
revision="1c9233b1b9f903e4e2cb20a724e8c22aee4aacb2"
[1.11.x] Fixed #29094 -- Fixed crash when entering an invalid uuid in
ModelAdmin.raw_id_fields.
Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89.
Thanks Carel Burger for the report and fix.
Backport of docs552abffab16cbdff571486b683e7e7ef12e46066 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29094#comment:7>