Changes between Version 1 and Version 2 of Ticket #35499, comment 1
- Timestamp:
- Jun 6, 2024, 7:00:22 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35499, comment 1
v1 v2 3 3 Duplicate of #22981 and #30319 which were both wont-fix'ed. 4 4 5 Thi sof it the other way around, if `auto_now` fields are automatically added to `update_fields` how is possible to perform a `save` without them being updated? `Model.save(update_fields)` is a low level option that control exactly which fields should be added to the `UPDATE` statement used to perform the persist the change and is aligned with how `QuerySet.update` works. The framework has chosen to have a consistent behavior towards explicit update specification over preventing complete control by treating some fields different than others.5 Think of it the other way around, if `auto_now` fields are automatically added to `update_fields` how is possible to perform a `save` without them being updated? `Model.save(update_fields)` is a low level option that control exactly which fields should be added to the `UPDATE` statement used to perform the persist the change and is aligned with how `QuerySet.update` works. The framework has chosen to have a consistent behavior towards explicit update specification over preventing complete control by treating some fields different than others.