#30491: Make note on exception to UPDATE-v-INSERT logic
------------------------------------------------+------------------------
               Reporter:  Brad                  |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Documentation         |        Version:  2.2
               Severity:  Normal                |       Keywords:  save
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 PR: https://github.com/django/django/pull/11390

 The docs for 'How Django knows to UPDATE vs. INSERT'
 do not make any mention of a potentially confusing condition,
 which is that updating a PK followed by a call to .save()
 will always result in an INSERT rather than an UPDATE.

 While this note is present in the primary key docstring
 itself, it would be worthwhile to duplicate it to this section
 as a gotcha.

 See also: https://stackoverflow.com/q/56212145/7954504

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30491>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.a409a8d890d0ce420f738f358a437835%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to