#19527: bulk_create() can set the primary key
-------------------------------------+-------------------------------------
     Reporter:  Tuttle               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:                       |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by charettes):

 * cc: charette.s@… (added)
 * version:  1.4 => master


Comment:

 I'd like to work on a patch for this if it gets accepted since it's step
 toward bulk creation of inherited models.

 IMHO the `set_primary_keys=False` also makes more sense.

 We could just raise a `NotImplementedError` if `set_primary_key=True and
 not connection.features.can_return_id_from_insert` just like what
 `distinct` does when specifying fields on a unsupported backend.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19527#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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to