Fixed typo in OR syntax example in docs/db-api.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-22 15:10:01 +00:00
parent 02e301053d
commit d9269055c9
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ The ``|`` symbol signifies an "OR", so this (roughly) translates into::
You can use ``&`` and ``|`` operators together, and use parenthetical grouping. You can use ``&`` and ``|`` operators together, and use parenthetical grouping.
Example:: Example::
polls.get_object(complex=(Q(question__startswith='Who') & (Q(pub_date__exact=date(2005, 5, 2)) | pub_date__exact=date(2005, 5, 6))) polls.get_object(complex=(Q(question__startswith='Who') & (Q(pub_date__exact=date(2005, 5, 2)) | Q(pub_date__exact=date(2005, 5, 6))))
This roughly translates into:: This roughly translates into::