Skip to content

Commit 0d60669

Browse files
committed
0.91-bugfix: Fixed django#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
1 parent b70c86c commit 0d60669

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

django/contrib/admin/views/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ def get_lookup_params(self):
226226
or_queries.append(meta.Q(**{'%s__icontains' % field_name: bit}))
227227
complex_queries.append(reduce(operator.or_, or_queries))
228228
lookup_params['complex'] = reduce(operator.and_, complex_queries)
229-
if opts.one_to_one_field:
230-
lookup_params.update(opts.one_to_one_field.rel.limit_choices_to)
231229
self.lookup_params = lookup_params
232230

233231
def change_list(request, app_label, module_name):

0 commit comments

Comments
 (0)