1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

View File

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