Code

Ticket #14017: 14017.diff

File 14017.diff, 716 bytes (added by fisadev, 4 years ago)
Line 
1Index: django/contrib/admin/options.py
2===================================================================
3--- django/contrib/admin/options.py     (revision 13593)
4+++ django/contrib/admin/options.py     (working copy)
5@@ -447,9 +447,8 @@
6 
7     def log_deletion(self, request, object, object_repr):
8         """
9-        Log that an object has been successfully deleted. Note that since the
10-        object is deleted, it might no longer be safe to call *any* methods
11-        on the object, hence this method getting object_repr.
12+        Log that an object will be deleted. Note that this method is called
13+        before the deletion.
14 
15         The default implementation creates an admin LogEntry object.
16         """