diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2021-05-07 11:14:07 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-05-12 12:12:10 +0200 |
| commit | fab710d3ff9af9aaeed1b17783ad113186b2280e (patch) | |
| tree | 35302616b6eb917b12212d6762c4b5d590b4aaa6 /docs | |
| parent | dc7b495dae31b5c8c059ff95a454f7f6e9b4c71d (diff) | |
[3.2.x] Fixed a typo in docs/ref/models/fields.txt.
datetime.date.utcnow() doesn't exist, should be .today().
Backport of 88b3982af396a7c2eca0db9c52dfa9830045cc19 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index a315402347..64ab3e3e0b 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1678,7 +1678,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 |
