Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1003 closed defect (duplicate)

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

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


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/", line 74, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

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

  File "/home/j/jason/django_src/django/contrib/admin/views/", 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/", line 567, in _get_deleted_objects
    if rel_opts.admin:

NameError: global name 'rel_opts' is not defined

Change History (2)

comment:1 Changed 10 years ago by rjwittams

Duplicate of fixed 1022

comment:2 Changed 10 years ago by Esaj <jason at>

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top