diff --git a/docs/model-api.txt b/docs/model-api.txt index 603c131662..33742220a3 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -1408,7 +1408,10 @@ 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``. +``TextField``. You can also perform a related lookup on a ``ForeignKey`` with +the lookup API "follow" notation:: + + search_fields = ['foreign_key__related_fieldname'] When somebody does a search in the admin search box, Django splits the search query into words and returns all objects that contain each of the words, case