Changes between Initial Version and Version 1 of Ticket #22571, comment 6
- Timestamp:
- Dec 31, 2014, 10:44:30 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22571, comment 6
initial v1 24 24 > 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. 25 25 26 And the codealso 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.26 And 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.