Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clarifies day and month in example queryset

  • Loading branch information...
commit 813241f65562bc0e7f20264238424d82bee2febc 1 parent 03ad7d3
@Matt-Deacalion Matt-Deacalion authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/topics/db/queries.txt
View
4 docs/topics/db/queries.txt
@@ -235,14 +235,14 @@ refinements together. For example::
... ).exclude(
... pub_date__gte=datetime.now()
... ).filter(
- ... pub_date__gte=datetime(2005, 1, 1)
+ ... pub_date__gte=datetime(2005, 1, 2)
... )
This takes the initial :class:`~django.db.models.query.QuerySet` of all entries
in the database, adds a filter, then an exclusion, then another filter. The
final result is a :class:`~django.db.models.query.QuerySet` containing all
entries with a headline that starts with "What", that were published between
-January 1, 2005, and the current day.
+January 2, 2005, and the current day.
.. _filtered-querysets-are-unique:

0 comments on commit 813241f

Please sign in to comment.
Something went wrong with that request. Please try again.