From 8d10e0c3252fafead53b4f71602acee9b7c70429 Mon Sep 17 00:00:00 2001 From: Timo Graham Date: Sat, 18 Dec 2010 14:04:39 +0000 Subject: [PATCH] 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 --- docs/ref/models/fields.txt | 5 +++++ 1 file changed, 5 insertions(+) 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 ```` 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`` -----------------