mirror of
https://github.com/django/django.git
synced 2025-07-21 10:09:14 +00:00
[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
This commit is contained in:
parent
08d47a16e3
commit
0efff2c032
@ -237,9 +237,6 @@ class ChangeList(object):
|
|||||||
qs = qs.distinct()
|
qs = qs.distinct()
|
||||||
break
|
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
|
return qs
|
||||||
|
|
||||||
def url_for_result(self, result):
|
def url_for_result(self, result):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user