Fixed #35606, Refs #34045 -- Fixed rendering of ModelAdmin.action_checkbox for models with a __html__ method.

Thank you Claude Paroz for the report.

Regression in 85366fbca7.
This commit is contained in:
Hisham Mahmood 2024-07-17 18:50:45 +05:00 committed by Sarah Boyce
parent 0e49a8c3bd
commit 182f262b15
5 changed files with 41 additions and 1 deletions

View file

@ -11,3 +11,7 @@ Bugfixes
* Added missing validation for ``UniqueConstraint(nulls_distinct=False)`` when
using ``*expressions`` (:ticket:`35594`).
* Fixed a regression in Django 5.0 where ``ModelAdmin.action_checkbox`` could
break the admin changelist HTML page when rendering a model instance with a
``__html__`` method (:ticket:`35606`).