Opened 19 years ago

Closed 19 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 Holovaty
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: no UI/UX: no

Description

one-liner patch is: replace "rel_opts.verbose_name" with "rel_opts_name" in django/contrib/admin/views/main.py
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).

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top