Made small improvement to docs/topics/db/queries.txt -- added import statement to 'Complex lookups with Q objects' for easier scanning

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2011-03-03 21:04:32 +00:00
parent 3ecf628b36
commit 136930085b
1 changed files with 1 additions and 0 deletions

View File

@ -679,6 +679,7 @@ collection of keyword arguments. These keyword arguments are specified as in
For example, this ``Q`` object encapsulates a single ``LIKE`` query:: For example, this ``Q`` object encapsulates a single ``LIKE`` query::
from django.db.models import Q
Q(question__startswith='What') Q(question__startswith='What')
``Q`` objects can be combined using the ``&`` and ``|`` operators. When an ``Q`` objects can be combined using the ``&`` and ``|`` operators. When an