Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
James Bennett authored

Showing 1 changed file with 0 additions and 3 deletions. Show diff stats Hide diff stats

  1. 3  django/contrib/admin/views/main.py
3  django/contrib/admin/views/main.py
@@ -237,9 +237,6 @@ def construct_search(field_name):
237 237
                     qs = qs.distinct()
238 238
                     break
239 239
 
240  
-        if self.is_popup and self.opts.one_to_one_field:
241  
-            qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to)
242  
-
243 240
         return qs
244 241
 
245 242
     def url_for_result(self, result):

0 notes on commit bb6d5dc

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