Browse files

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
  • Loading branch information...
1 parent 02e3010 commit d9269055c941bd864049207441d7955ec65760fe @adrianholovaty adrianholovaty committed Dec 22, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/db-api.txt
View
2 docs/db-api.txt
@@ -243,7 +243,7 @@ The ``|`` symbol signifies an "OR", so this (roughly) translates into::
You can use ``&`` and ``|`` operators together, and use parenthetical grouping.
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::

0 comments on commit d926905

Please sign in to comment.