1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[5.1.x] Refs #35060 -- Adjusted deprecation warning stacklevel in Model.save()/asave().

Backport of 52ed2b645e from main.
This commit is contained in:
Simon Charette
2024-08-09 13:41:18 -04:00
committed by Natalia
parent e435b44be6
commit c87007ab60
4 changed files with 13 additions and 5 deletions

View File

@@ -19,3 +19,7 @@ Bugfixes
children). A new :class:`~django.contrib.auth.forms.AdminUserCreationForm`
including this field was added, isolating the feature to the admin where it
was intended (:ticket:`35678`).
* Adjusted the deprecation warning ``stacklevel`` in :meth:`.Model.save` and
:meth:`.Model.asave` to correctly point to the offending call site
(:ticket:`35060`).