diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-21 01:39:18 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-21 01:39:18 +0000 |
| commit | 7a80b2cc985a40eac6deb8e4e6ec050a8274bc47 (patch) | |
| tree | f6bc8db6e196cfe035354da12f844e2af0148c79 /django/contrib/admin | |
| parent | b96f6059f01c9ff5247eae617a38119e914501bf (diff) | |
Fixed bug for OneToOneFields in the admin -- the manipulator_validator_unique wasn't doing the correct lookup
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/admin')
| -rw-r--r-- | django/contrib/admin/views/main.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index fd2849ba5e..9c2927000a 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -79,13 +79,6 @@ def change_list(request, app_label, module_name): lookup_mod, lookup_opts = mod, opts - if opts.one_to_one_field: - lookup_mod = opts.one_to_one_field.rel.to.get_model_module() - lookup_opts = lookup_mod.Klass._meta - # If lookup_opts doesn't have admin set, give it the default meta.Admin(). - if not lookup_opts.admin: - lookup_opts.admin = meta.Admin() - # Get search parameters from the query string. try: page_num = int(request.GET.get(PAGE_VAR, 0)) |
