Commit a371eb3c authored by Adrian Holovaty's avatar Adrian Holovaty
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
parent 1ffa1a9b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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