1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

[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
This commit is contained in:
Timo Graham 2010-12-18 14:05:40 +00:00
parent 38c88f7c2a
commit 2a0dda3df9

View File

@ -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 calendar, and a shortcut for "Today". The JavaScript calendar will always
start the week on a Sunday. 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`` ``DateTimeField``
----------------- -----------------