Changes between Version 1 and Version 2 of Ticket #36847, comment 12
- Timestamp:
- Jan 7, 2026, 2:09:31 PM (28 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36847, comment 12
v1 v2 3 3 I think we can't until we adjust `DateField.pre_save` and `DateTimeFied.pre_save` to be. [https://github.com/django/django/blob/7c1b3391d35fb10e912783fa6c87712e40de22dc/django/db/models/fields/__init__.py#L1508-L1512 As of now] they always generate a new value on call and assign it. 4 4 5 We could gate the `auto_now_add and add` generation by the presence of theattribute on the provided model instances but we can't do that for `auto_now=True` as the call of the function is the ''signal'' that a new value should be generated.5 We could gate the `auto_now_add and add` generation by the lack of presence of the destination attribute on the provided model instances but we can't do that for `auto_now=True` as the call of the function is the ''signal'' that a new value should be generated.