mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Regression in94680437a4. Refs #27222. During INSERT operations, `field.pre_save()` is called to prepare values for db insertion. The `add` param must be `True` for `auto_now_add` fields to be populated. The regression commit passed `False`, causing `auto_now_add` fields to remain `None` when used by other fields, such as `upload_to` callables. Thanks Ran Benita for the report. Backport offe189dc43afrom main.