[patch] NameError trying to delete without related object permissions in Admin interface
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)