Skip to content

Commit

Permalink
Fixed #1022 -- Fixed bug in admin when deleting models with OneToOne.…
Browse files Browse the repository at this point in the history
… Thanks, Eric Moritz.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Dec 7, 2005
1 parent 668e8b3 commit 9832abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def _get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current
except ObjectDoesNotExist:
pass
else:
if rel_opts.admin:
if related.opts.admin:
p = '%s.%s' % (related.opts.app_label, related.opts.get_delete_permission())
if not user.has_perm(p):
perms_needed.add(related.opts.verbose_name)
Expand Down

0 comments on commit 9832abf

Please sign in to comment.