summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bennett <ubernostrum@gmail.com>2008-12-11 07:07:03 +0000
committerJames Bennett <ubernostrum@gmail.com>2008-12-11 07:07:03 +0000
commit0efff2c032c6f7fb712a0ffdb772e38ce865d504 (patch)
treeaae3c2a8d8494fe4f8fd27131775e7650b252b96
parent08d47a16e3e0bf8f593f4d91fa2071b2f6c9a2ef (diff)
[1.0.X] 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. Was [9641] in trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/admin/views/main.py3
1 files changed, 0 insertions, 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):