Browse files

[1.2.X] Fixed #11748 -- Clarified the ways that search_field can be u…

…sed. Thanks to Michael Richardson for the patch.

Backport of r13550 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7c05d23 commit 0fda7c8a2bf1c21bcd9b971d9843af1f52ca14c8 @freakboy3742 freakboy3742 committed Aug 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/admin/index.txt
4 docs/ref/contrib/admin/index.txt
@@ -594,8 +594,8 @@ This should be set to a list of field names that will be searched whenever
somebody submits a search query in that text box.
These fields should be some kind of text field, such as ``CharField`` or
-``TextField``. You can also perform a related lookup on a ``ForeignKey`` with
-the lookup API "follow" notation::
+``TextField``. You can also perform a related lookup on a ``ForeignKey`` or
+``ManyToManyField`` with the lookup API "follow" notation::
search_fields = ['foreign_key__related_fieldname']

0 comments on commit 0fda7c8

Please sign in to comment.