Fixed reference to nonexistent __between lookup.

This commit is contained in:
Daniel Roseman 2018-04-04 14:43:36 +01:00 committed by Tim Graham
parent 816b386d41
commit e6c21217d3
1 changed files with 1 additions and 1 deletions

View File

@ -2973,7 +2973,7 @@ lookups. Takes a :class:`datetime.time` value.
Example:: Example::
Entry.objects.filter(pub_date__time=datetime.time(14, 30)) 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 (No equivalent SQL code fragment is included for this lookup because
implementation of the relevant query varies among different database engines.) implementation of the relevant query varies among different database engines.)