Skip to content
Browse files

Fixed #2955 -- Fixed incorrect verbose-name display in admin delete_s…

…tage message. Thanks for the patch,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7988a48 commit b0a8a75fc3fb90b2f8ba862e5c8f7ef1215433bf @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/
2 django/contrib/admin/views/
@@ -454,7 +454,7 @@ def _get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current
if related.opts.admin and has_related_objs:
p = '%s.%s' % (related.opts.app_label, related.opts.get_delete_permission())
if not user.has_perm(p):
- perms_needed.add(rel_opts_name)
+ perms_needed.add(related.opts.verbose_name)
for related in opts.get_all_related_many_to_many_objects():
if related.opts in opts_seen:

0 comments on commit b0a8a75

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