Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1003 closed defect (duplicate)

Global name 'rel_opts' is not defined (problem with deleting)

Reported by: Esaj <jason at jasondavies.com> Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm not sure what rel_opts is referring to. Should it be related.opts instead?

Traceback (most recent call last):

  File "/home/j/jason/django_src/django/core/handlers/base.py", line 74, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/j/jason/django_src/django/contrib/admin/views/decorators.py", line 49, in _checklogin
    return view_func(request, *args, **kwargs)

  File "/home/j/jason/django_src/django/contrib/admin/views/main.py", line 639, in delete_stage
    _get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1)

  File "/home/j/jason/django_src/django/contrib/admin/views/main.py", line 567, in _get_deleted_objects
    if rel_opts.admin:

NameError: global name 'rel_opts' is not defined

Change History (2)

comment:1 by rjwittams, 19 years ago

Duplicate of fixed 1022

comment:2 by Esaj <jason at jasondavies.com>, 19 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top