Merge pull request #318 from Matt-Stevens/master

Small doc change: clarify day and month
This commit is contained in:
Adrian Holovaty 2012-09-05 19:20:25 -07:00
commit 3f53cac520
1 changed files with 2 additions and 2 deletions

View File

@ -235,14 +235,14 @@ refinements together. For example::
... ).exclude( ... ).exclude(
... pub_date__gte=datetime.now() ... pub_date__gte=datetime.now()
... ).filter( ... ).filter(
... pub_date__gte=datetime(2005, 1, 1) ... pub_date__gte=datetime(2005, 1, 30)
... ) ... )
This takes the initial :class:`~django.db.models.query.QuerySet` of all entries 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 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 final result is a :class:`~django.db.models.query.QuerySet` containing all
entries with a headline that starts with "What", that were published between entries with a headline that starts with "What", that were published between
January 1, 2005, and the current day. January 30, 2005, and the current day.
.. _filtered-querysets-are-unique: .. _filtered-querysets-are-unique: