#28806: Mechanism of fetching related objects violates READ COMMITTED 
assumption of
Django ORM
-------------------------------------+-------------------------------------
     Reporter:  Aaron Tan            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  database, read-      |             Triage Stage:  Accepted
  committed, concurrency control     |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by holvianssi):

 There's nothing else to do for this case except throw an informative
 error. This is what you get with concurrent database requests.

 BTW there's another reason why the comment is wrong. Django uses deferred
 foreign keys, so nothing prevents you from deleting the parent model
 inside a transaction, the fk is only validated during commit.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28806#comment:4>
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/067.baec16f8047aea6a80f0d320ec17c083%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to