From e6c21217d3c79a507ebab290ba41116407dd7f2a Mon Sep 17 00:00:00 2001 From: Daniel Roseman Date: Wed, 4 Apr 2018 14:43:36 +0100 Subject: [PATCH] Fixed reference to nonexistent __between lookup. --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index d4a96af6c0..d623966b3a 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2973,7 +2973,7 @@ lookups. Takes a :class:`datetime.time` value. Example:: Entry.objects.filter(pub_date__time=datetime.time(14, 30)) - Entry.objects.filter(pub_date__time__between=(datetime.time(8), datetime.time(17))) + Entry.objects.filter(pub_date__time__range=(datetime.time(8), datetime.time(17))) (No equivalent SQL code fragment is included for this lookup because implementation of the relevant query varies among different database engines.)