Changes between Initial Version and Version 1 of Ticket #35350, comment 2


Ignore:
Timestamp:
Apr 3, 2024, 12:21:52 PM (6 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35350, comment 2

    initial v1  
    33When 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.
    44
    5 It seems that the `non_pk` logic in `_save_table` needs to be adapted to also needs to exclude deferred fields.
     5It 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.
Back to Top