Ticket #7284: 7284.diff

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

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