Fixed #36446 -- Restored "q" in internal MediaType.params property.

The "q" key was removed while addressing ticket #36411. Despite
`MediaType.params` is undocumented and considered internal, it was used
in third-party projects (Zulip reported breakage), so this work restored
the `q` key in `params`.

Thanks Anders Kaseorg for the report.

Regression in c075508b4d.
This commit is contained in:
Natalia 2025-06-09 09:59:11 -03:00 committed by nessita
parent 8fd21b0da3
commit cf5f36bf90
3 changed files with 69 additions and 10 deletions

View file

@ -17,3 +17,6 @@ Bugfixes
* Fixed a regression in Django 5.2 that caused :meth:`.QuerySet.bulk_update` to
incorrectly convert ``None`` to JSON ``null`` instead of SQL ``NULL`` for
``JSONField`` (:ticket:`36419`).
* Fixed a regression in Django 5.2.2 where the ``q`` parameter was removed from
the internal ``django.http.MediaType.params`` property (:ticket:`36446`).