Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
  • Loading branch information...
commit 2a0dda3df9c90047267e2c812ea75d2ec233bec6 1 parent 38c88f7
@timgraham timgraham authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/ref/models/fields.txt
View
5 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``
-----------------
Please sign in to comment.
Something went wrong with that request. Please try again.