Commit 1a9e0f70 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #11748 -- Clarified the ways that search_field can be used. Thanks to...

Fixed #11748 -- Clarified the ways that search_field can be used. Thanks to Michael Richardson for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 2dc2ed87
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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']