Changes between Initial Version and Version 1 of Ticket #35350, comment 2
- Timestamp:
- Apr 3, 2024, 12:21:52 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35350, comment 2
initial v1 3 3 When this is the case `Mode.save` [https://github.com/django/django/blob/4636baec179d8733e92c1eccfa669bd72d739735/django/db/models/base.py#L1094-L1112 will first attempt to perform an] `UPDATE` as it cannot know whether or not the row exists. 4 4 5 It seems that the `non_pk` logic in `_save_table` needs to be adapted to also needs to exclude deferred fields .5 It seems that the `non_pk` logic in `_save_table` needs to be adapted to also needs to exclude deferred fields when computing `values` for update purpose.