[patch] NameError trying to delete without related object permissions in Admin interface
|Reported by:||oggie rob <oz.robharvey@…>||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
Note: See TracTickets for help on using tickets.