summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2010-12-18 14:05:40 +0000
committerTimo Graham <timograham@gmail.com>2010-12-18 14:05:40 +0000
commit2a0dda3df9c90047267e2c812ea75d2ec233bec6 (patch)
treee0373e08af2ec19b8ebb4403d873436927f284fb
parent38c88f7c2a0e4a7851f178cf91ab451624e37bd7 (diff)
[1.2.X] Fixed #6434 - Add clarifying note about auto_now and auto_now_add. thank adamv for the patch.
Backport of r14923 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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 0d60e0543f..146ca43828 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``
-----------------