diff options
| author | Nilesh Kumar Pahari <nileshpahari@protonmail.com> | 2026-01-26 00:02:29 +0530 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2026-01-29 10:11:33 -0300 |
| commit | fe189dc43ab3eddbbceefb6834893b73ca60d5ed (patch) | |
| tree | 2cc8f8750efb1520ed763c9ca39d376720aee89d /docs/internals | |
| parent | 2831eaed797627e6e6410b06f74dadeb63316e09 (diff) | |
Fixed #36847 -- Ensured auto_now_add fields are set on pre_save().
Regression in 94680437a45a71c70ca8bd2e68b72aa1e2eff337. 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.
Diffstat (limited to 'docs/internals')
0 files changed, 0 insertions, 0 deletions
