mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
1ffa1a9bc8
commit
a371eb3c90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue