Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…tage message. Thanks for the patch, mattimustang@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b0a8a75fc3fb90b2f8ba862e5c8f7ef1215433bf 1 parent 7988a48
Adrian Holovaty authored October 24, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/views/main.py
2  django/contrib/admin/views/main.py
@@ -454,7 +454,7 @@ def _get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current
454 454
             if related.opts.admin and has_related_objs:
455 455
                 p = '%s.%s' % (related.opts.app_label, related.opts.get_delete_permission())
456 456
                 if not user.has_perm(p):
457  
-                    perms_needed.add(rel_opts_name)
  457
+                    perms_needed.add(related.opts.verbose_name)
458 458
     for related in opts.get_all_related_many_to_many_objects():
459 459
         if related.opts in opts_seen:
460 460
             continue

0 notes on commit b0a8a75

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