Changes between Initial Version and Version 1 of Ticket #31297


Ignore:
Timestamp:
Feb 22, 2020, 11:03:14 AM (5 years ago)
Author:
ChillarAnand
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31297 – Description

    initial v1  
    1 Consider the following modesl:
     1Consider the following modell:
    22
    33{{{
     
    3838
    3939However, in the Model Instance Reference, it says the following:
    40 ```
    41 Changed in Django 3.0:
    42 Model.save() no longer attempts to find a row when saving a new Model instance and a default value for the primary key is provided, and always executes an INSERT.
    43 ```
    4440
    45 It is expected that using a force_insert (and a value is provided explicitly or as a default), force_insert should be respected by the parents as well.
    46 This isn't fully related to #18305. I believe that ticket also talks about AutoField PKs.
     41
     42  Changed in Django 3.0:
     43  Model.save() no longer attempts to find a row when saving a new Model instance and a default value for the primary key is provided, and always executes an INSERT.
     44
     45
     46It is expected that using a force_insert (and value is provided explicitly or as a default), force_insert should be respected by the parents as well.
     47This isn't fully related to #18305. I believe that the ticket also talks about AutoField PKs.
Back to Top