From 813241f65562bc0e7f20264238424d82bee2febc Mon Sep 17 00:00:00 2001 From: Matt Stevens Date: Mon, 3 Sep 2012 15:20:05 +0100 Subject: [PATCH 1/2] Clarifies day and month in example queryset --- docs/topics/db/queries.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 60437c1120..1203dab092 100644 --- a/docs/topics/db/queries.txt +++ b/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: From a7d831a3056449b2aca88492031be8cedef58f87 Mon Sep 17 00:00:00 2001 From: Matt Stevens Date: Mon, 3 Sep 2012 16:31:37 +0100 Subject: [PATCH 2/2] Changes day to from 2 to 30 --- docs/topics/db/queries.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 1203dab092..f87fa2920f 100644 --- a/docs/topics/db/queries.txt +++ b/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, 2) + ... pub_date__gte=datetime(2005, 1, 30) ... ) 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 2, 2005, and the current day. +January 30, 2005, and the current day. .. _filtered-querysets-are-unique: