Skip to content
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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 08d47a1 commit 0efff2c032c6f7fb712a0ffdb772e38ce865d504 @ubernostrum ubernostrum committed
Showing with 0 additions and 3 deletions.
  1. +0 −3 django/contrib/admin/views/
3 django/contrib/admin/views/
@@ -237,9 +237,6 @@ def construct_search(field_name):
qs = qs.distinct()
- 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):

0 comments on commit 0efff2c

Please sign in to comment.
Something went wrong with that request. Please try again.