Ticket #7284: 7284.2.diff

File 7284.2.diff, 589 bytes (added by Simon Meers, 14 years ago)

Field name without underscore might be clearer.

  • docs/ref/contrib/admin/index.txt

     
    600600
    601601    search_fields = ['foreign_key__related_fieldname']
    602602
     603For example::
     604
     605    search_fields = ['user__email']
     606
    603607When somebody does a search in the admin search box, Django splits the search
    604608query into words and returns all objects that contain each of the words, case
    605609insensitive, where each word must be in at least one of ``search_fields``. For
Back to Top