1
0
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:
Adrian Holovaty
2005-12-24 04:51:17 +00:00
parent 4bf7d2c81c
commit 5c0fe75d44
15 changed files with 415 additions and 92 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.
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::