[2.0.x] Fixed reference to nonexistent __between lookup.

Backport of e6c21217d3 from master
This commit is contained in:
Daniel Roseman 2018-04-04 14:43:36 +01:00 committed by Tim Graham
parent 36b399d6b3
commit 18eaf0997b
1 changed files with 1 additions and 1 deletions

View File

@ -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.)