Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2057 -- Added explicit statement to auto_now and auto_now_add …

…section in docs/model-api.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a371eb3c9004d1a88b27a50822c594d2af10dfce 1 parent 1ffa1a9
@adrianholovaty adrianholovaty authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 docs/model-api.txt
View
8 docs/model-api.txt
@@ -162,11 +162,15 @@ A date field. Has a few extra optional arguments:
====================== ===================================================
``auto_now`` Automatically set the field to now every time the
object is saved. Useful for "last-modified"
- timestamps.
+ timestamps. Note that the current date is *always*
+ used; it's not just a default value that you can
+ override.
``auto_now_add`` Automatically set the field to now when the object
is first created. Useful for creation of
- timestamps.
+ timestamps. Note that the current date is *always*
+ used; it's not just a default value that you can
+ override.
====================== ===================================================
The admin represents this as an ``<input type="text">`` with a JavaScript
Please sign in to comment.
Something went wrong with that request. Please try again.