Changes between Initial Version and Version 1 of Ticket #22571, comment 6


Ignore:
Timestamp:
Dec 31, 2014, 10:44:30 PM (9 years ago)
Author:
Bibhas C Debnath

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22571, comment 6

    initial v1  
    2424> Automatically set the field to now when the object is first created. Useful for creation of timestamps. Note that the current date is *always* used; it’s not just a default value that you can override.
    2525
    26 And the code also shows that the value with always set to `timezone.now()` if `auto_now_add` is set, even if you provide a value when creating it.
     26And the [https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L1378 code] also shows that the value with always set to `timezone.now()` if `auto_now_add` is set, even if you provide a value when creating it.
Back to Top