From 18eaf0997b1882e73a3983520e01c76831c39eeb Mon Sep 17 00:00:00 2001 From: Daniel Roseman Date: Wed, 4 Apr 2018 14:43:36 +0100 Subject: [PATCH] [2.0.x] Fixed reference to nonexistent __between lookup. Backport of e6c21217d3c79a507ebab290ba41116407dd7f2a from master --- 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 b79f59d6a13..30876bd2d04 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2959,7 +2959,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.)