#27408: Multiple consecutive `bulk_create`s with FK.
-------------------------------------+-------------------------------------
     Reporter:  Jarek Glowacki       |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  bulk_create foreign  |             Triage Stage:
  key id                             |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jarek Glowacki):

 Yep, that fails too.

 The difference is use case. For single `save`s, it's easy to pass the id
 through. For `bulk_create`s it's a bit messier to do that.

 I suggested only updating `bulk_create` (to automatically figure out what
 to do in that second call) as I wasn't sure it was feasible to make this
 work in the general case - but maybe by putting some more magic in the
 foreignkey field's `__get__` could work?

--
Ticket URL: <https://code.djangoproject.com/ticket/27408#comment:2>
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/065.7f35d3bab03474e53156f3f4f91e01c7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to