From bb6d5dc69b05884529cf166a62030230cae1607a Mon Sep 17 00:00:00 2001 From: James Bennett Date: Thu, 11 Dec 2008 07:06:25 +0000 Subject: [PATCH] Fixed #9795: Since related-object selection widgets take limit_choices_to into account, the offending code is no longer necessary and can simply be removed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9641 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/views/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 1051648361..d70b6da1de 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -237,9 +237,6 @@ class ChangeList(object): qs = qs.distinct() break - if self.is_popup and self.opts.one_to_one_field: - qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to) - return qs def url_for_result(self, result):