Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 0d60669146a41e888f18560dcbae0bd333e8d074 1 parent b70c86c
@ubernostrum ubernostrum authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  django/contrib/admin/views/main.py
View
2  django/contrib/admin/views/main.py
@@ -226,8 +226,6 @@ def get_lookup_params(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.