0.91-bugfix: Fixed #1113, limit_choices_to on OneToOneField no longer breaks admin changelist

git-svn-id: http://code.djangoproject.com/svn/django/branches/0.91-bugfixes@3576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2006-08-13 02:59:41 +00:00
parent b70c86c36d
commit 0d60669146
1 changed files with 0 additions and 2 deletions

View File

@ -226,8 +226,6 @@ class ChangeList(object):
or_queries.append(meta.Q(**{'%s__icontains' % field_name: bit}))
complex_queries.append(reduce(operator.or_, or_queries))
lookup_params['complex'] = reduce(operator.and_, complex_queries)
if opts.one_to_one_field:
lookup_params.update(opts.one_to_one_field.rel.limit_choices_to)
self.lookup_params = lookup_params
def change_list(request, app_label, module_name):