#10811: Assigning unsaved model to a ForeignKey leads to silent failures
-------------------------------------+-------------------------------------
     Reporter:  Glenn                |                    Owner:
         Type:  Bug                  |  anubhav9042
    Component:  Database layer       |                   Status:  closed
  (models, ORM)                      |                  Version:  master
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5643a3b51be338196d0b292d5626ad43648448d3"]:
 {{{
 #!CommitTicketReference repository=""
 revision="5643a3b51be338196d0b292d5626ad43648448d3"
 Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise
 ValueError.

 This prevents silent data loss.

 Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the
 review.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10811#comment:36>
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/063.39c3bb8d8343a5f7f53c2918bdce9460%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to