[1.0.X] OneToOne? filtering should only apply in a popup selection from the related model. This was [9507] in trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2008-11-20 19:02:17 +00:00
parent 5cc5451a3f
commit 0f5258684e
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class ChangeList(object):
qs = qs.distinct()
break
if self.opts.one_to_one_field:
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