mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
magic-removal: Merged to [1774]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user