#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
-------------------------------------+-------------------------------------
Comment (by Jacob Walls):

 Grepping for `get_object_for_this_type()` in `django/contrib/admin`, I
 only get a hit in `LogEntry.get_edited_object`. Is that the context you
 found this in? That seems to buttress your case that the admin should
 gracefully fall back to something. I see the use case now for having stale
 content types being referred to by admin data.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36846#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019bb87f5577-b6ce25ea-48ae-40bf-a107-dd9721befe28-000000%40eu-central-1.amazonses.com.

Reply via email to