#36702: bulk_create not returning pk if it was set as an expression
-------------------------------------+-------------------------------------
     Reporter:  Johannes Westphal    |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * cc: Simon Charette (added)

Comment:

 Thanks for the test!

 I think we should merge your proposed `if field != opts.pk:` removal with
 your test first though as my branch is more invasive and this ticket is
 already focused on it.

 Would you mind pushing the removal to your branch and open a PR with it?
 Happy to review it one you do and we can trade reviews when I open the
 follow up ticket and PR to optimize the insertion.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36702#comment:3>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019a473be6bc-2019ac21-00b6-4296-aaa3-21a58f2543df-000000%40eu-central-1.amazonses.com.

Reply via email to