Search

We’ll refer to the same models used in Making queries.

Use Cases

Standard textual queries

Text-based fields have a selection of simple matching operations. For example, you may wish to allow lookup up an author like so:

>>> Author.objects.filter(name__contains='Terry')
[<Author: Terry Gilliam>, <Author: Terry Jones>]