Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Fixed #9795: Since related-object selection widgets take limi…

…t_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
  • Loading branch information...
commit 0efff2c032c6f7fb712a0ffdb772e38ce865d504 1 parent 08d47a1
James Bennett ubernostrum authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  django/contrib/admin/views/main.py
3  django/contrib/admin/views/main.py
View
@@ -237,9 +237,6 @@ def construct_search(field_name):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.