Skip to content
Browse files

Fixed #162 -- Admin log now records repr() before calling delete(), i…

…nstead of after calling it() -- thanks,!

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b23c63b commit 3c0c0e7317ebc5bb43faf8cdf24ca495ff154e91 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/admin/
2 django/views/admin/
@@ -1056,8 +1056,8 @@ def delete_stage(request, app_label, module_name, object_id):
if request.POST: # The user has already confirmed the deletion.
if perms_needed:
raise PermissionDenied
- obj.delete()
obj_repr = repr(obj)
+ obj.delete()
log.log_action(, opts.get_content_type_id(), object_id, obj_repr, log.DELETION)
request.user.add_message('The %s "%s" was deleted successfully.' % (opts.verbose_name, obj_repr))
return HttpResponseRedirect("../../")

0 comments on commit 3c0c0e7

Please sign in to comment.
Something went wrong with that request. Please try again.