From c87007ab60f69df7f991e5e6fe113dbaaba94787 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Fri, 9 Aug 2024 13:41:18 -0400 Subject: [5.1.x] Refs #35060 -- Adjusted deprecation warning stacklevel in Model.save()/asave(). Backport of 52ed2b645e1dd8c9a874cfd21c4c9f2500032626 from main. --- docs/releases/5.1.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.1.1.txt b/docs/releases/5.1.1.txt index b8c2993933..84a61efec5 100644 --- a/docs/releases/5.1.1.txt +++ b/docs/releases/5.1.1.txt @@ -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`). -- cgit v1.3