Re: [Django] #36846: ContentType.get_object_for_this_type() raises inappropriate exception type for removed models (was: ContentType.get_object_for_this_type() does not handle removed models)

2 views
Skip to first unread message

Django

unread,
Jan 8, 2026, 9:47:44 AMJan 8
to django-...@googlegroups.com
#36846: ContentType.get_object_for_this_type() raises inappropriate exception type
for removed models
-------------------------------------+-------------------------------------
Reporter: Maarten ter Huurne | Owner: Vishy
Type: | Algo
Cleanup/optimization | Status: new
Component: | Version: dev
contrib.contenttypes |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* summary: ContentType.get_object_for_this_type() does not handle removed
models =>
ContentType.get_object_for_this_type() raises inappropriate exception
type for removed models

--
Ticket URL: <https://code.djangoproject.com/ticket/36846#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages