DateField.auto_now
Automatically set the field to now every time the object is saved. Useful 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 Model.save()
. The field isn’t updated when making updates to other fields in other ways such as QuerySet.update()
, though you can specify a custom value for the field in an update like that.
Please login to continue.