Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #9795: Since related-object selection widgets take limit_choice…

…s_to into account, the offending code is no longer necessary and can simply be removed.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bb6d5dc69b05884529cf166a62030230cae1607a 1 parent a1cbeb9
@ubernostrum ubernostrum authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  django/contrib/admin/views/main.py
View
3  django/contrib/admin/views/main.py
@@ -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):

0 comments on commit bb6d5dc

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