From ca5c05ddbe91f4aae38c4543240dbda5f1fb1db2 Mon Sep 17 00:00:00 2001 From: Duane Hilton Date: Sat, 12 Mar 2016 09:15:57 -0700 Subject: [PATCH] Fixed #26239 -- Added a note about how auto_now works with QuerySet.update(). --- docs/ref/models/fields.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 21409f562b..f82d983be8 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -501,6 +501,12 @@ optional arguments: for "last-modified" timestamps. Note that the current date is *always* used; it's not just a default value that you can override. + The field is only automatically updated when calling :meth:`Model.save() + `. The field isn't updated when making updates + to other fields in other ways such as :meth:`QuerySet.update() + `, though you can specify a custom + value for the field in an update like that. + .. attribute:: DateField.auto_now_add Automatically set the field to now when the object is first created. Useful