summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2010-12-18 14:04:39 +0000
committerTimo Graham <timograham@gmail.com>2010-12-18 14:04:39 +0000
commit8d10e0c3252fafead53b4f71602acee9b7c70429 (patch)
treeb4be60b6ab775693c3d2a36f5043f434d409f522 /docs
parent3ae9117c467f9fabed8736949dee209d40293b8d (diff)
Fixed #6434 - Add clarifying note about auto_now and auto_now_add. thank adamv for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 7300f4d75d..83e0baed60 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -413,6 +413,11 @@ The admin represents this as an ``<input type="text">`` with a JavaScript
calendar, and a shortcut for "Today". The JavaScript calendar will always
start the week on a Sunday.
+.. note::
+ As currently implemented, setting ``auto_now`` or ``auto_add_now`` to
+ ``True`` will cause the field to have ``editable=False`` and ``blank=True``
+ set.
+
``DateTimeField``
-----------------