#25373: Django Admin silently catches exceptions without a chance to log them -------------------------------+-------------------- Reporter: limnick | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- Exceptions raised from ModelAdmin fields during the rendering of the admin detail view for a model are silently caught and there's no simple way to log them without putting the template renderer in debug mode.
As a fix I'd like the ability to log these exceptions via the normal logging facilities, something akin to [https://github.com/django/django/commit/dc5b01ad05e50ccde688c73c2ed3334a956076b0 #diff-43474443052641e2941ca9fd04138c6bR124 this change]: The problematic exception catching line is [https://github.com/django/django/blob/master/django/template/loader_tags.py#L207 here] [https://github.com/limnick/djangoadminexception_testcase example with reproduction steps] -- Ticket URL: <https://code.djangoproject.com/ticket/25373> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.b3998a212ef3f8825b8ee44eefa3ed09%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.