diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-06-01 04:37:47 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-06-01 04:37:47 +0000 |
| commit | a371eb3c9004d1a88b27a50822c594d2af10dfce (patch) | |
| tree | 679c04a7d3fee0cabbd71bae269ea36a7062b3f8 /docs/model-api.txt | |
| parent | 1ffa1a9bc8153417f11c43e348f371aacdf21b1c (diff) | |
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
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index fbb00a9e33..9cc5b8f203 100644 --- a/docs/model-api.txt +++ b/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 |
