Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Fixed backport error in previous commit; refs #15961

  • Loading branch information...
commit 90bdb42702327a4ef74e74d2e123da0731a90c4c 1 parent 9053c6d
Tim Graham authored August 04, 2013

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

  1. 5  django/contrib/admin/options.py
5  django/contrib/admin/options.py
@@ -756,10 +756,9 @@ def construct_search(field_name):
756 756
                 return "%s__icontains" % field_name
757 757
 
758 758
         use_distinct = False
759  
-        search_fields = self.get_search_fields(request)
760  
-        if search_fields and search_term:
  759
+        if self.search_fields and search_term:
761 760
             orm_lookups = [construct_search(str(search_field))
762  
-                           for search_field in search_fields]
  761
+                           for search_field in self.search_fields]
763 762
             for bit in search_term.split():
764 763
                 or_queries = [models.Q(**{orm_lookup: bit})
765 764
                               for orm_lookup in orm_lookups]

0 notes on commit 90bdb42

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