Opened 8 years ago

Closed 8 years ago

#1250 closed defect (fixed)

[patch] NameError trying to delete without related object permissions in Admin interface

Reported by: oggie rob <oz.robharvey@…> Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


one-liner patch is: replace "rel_opts.verbose_name" with "rel_opts_name" in django/contrib/admin/views/
This was on line 603 of rev 2009

If you have delete permissions to a record but not it's related records, you will get
NameError at ...
global name 'rel_opts' is not defined

This code isn't executed if you have delete permissions to all other objects (e.g. you are superuser).

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [2327]) Fixed #1250 -- Fixed NameError when trying to delete without related object permissions in admin interface. Thanks, oggie rob

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.