Ticket #7284: 7284.diff

File 7284.diff, 594 bytes (added by Simon Meers, 14 years ago)
  • docs/ref/contrib/admin/index.txt

     
    600600
    601601    search_fields = ['foreign_key__related_fieldname']
    602602
     603For example::
     604
     605    search_fields = ['user__first_name']
     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