summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorYamila Moreno <yamila.ms@gmail.com>2015-06-05 11:34:54 +0200
committerTim Graham <timograham@gmail.com>2015-06-05 09:56:02 -0400
commitcbe4efcbc13ad402bf1f1a94b02a8ec93f20327d (patch)
tree4669f1925f41d297568e304664459dc098d7092d /docs/ref
parentc91bc68e9a5f9f1e2cce00d01d62d16a858155f0 (diff)
Fixed #22571 -- Added clarification about auto_now_add=True
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/fields.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index f8144c1f34..0d467eb218 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -490,7 +490,11 @@ optional arguments:
Automatically set the field to now when the object is first created. Useful
for creation of timestamps. Note that the current date is *always* used;
- it's not just a default value that you can override.
+ it's not just a default value that you can override. So even if you
+ set a value for this field when creating the object, it will be ignored.
+ If you want to be able to modify this field, set ``default=timezone.now``
+ (from :func:`django.utils.timezone.now`) instead of ``auto_now_add=True``.
+
The default form widget for this field is a
:class:`~django.forms.TextInput`. The admin adds a JavaScript calendar,