diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-07 23:36:31 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-07 23:36:31 +0000 |
| commit | 9832abf6b49af4dcefc1926461d456cc5051a81e (patch) | |
| tree | 5101fd013c36b1c8eb68f351bb44bec3223be50b | |
| parent | 668e8b3df933b7ed979c23d48233d59be595f734 (diff) | |
Fixed #1022 -- Fixed bug in admin when deleting models with OneToOne. Thanks, Eric Moritz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/views/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 70a971f72b..bae71bec92 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -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) |
