0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed a typo in docs/ref/models/fields.txt.

datetime.date.utcnow() doesn't exist, should be .today().
This commit is contained in:
Nick Pope 2021-05-07 11:14:07 +01:00 committed by Carlton Gibson
parent d1f1417cae
commit 88b3982af3

View File

@ -1662,7 +1662,7 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
example::
def limit_pub_date_choices():
return {'pub_date__lte': datetime.date.utcnow()}
return {'pub_date__lte': datetime.date.today()}
limit_choices_to = limit_pub_date_choices