#30138: Return pk of created objects when ignore_conflicts set True on
QuerySet.bulk_create()
-------------------------------------+-------------------------------------
Reporter: saber- | Owner: nobody
solooki |
Type: | Status: new
Uncategorized |
Component: Database | Version: 2.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
According to [https://code.djangoproject.com/ticket/28668#comment:24]
comment, I create new ticket for returning pk of created objects. I tried
it in Postgresql 10.6 and this subject is supported. I see that when
ignore_confilicts set as True, django api doesn't put ' RETURNING
"mymodel"."id" ' in query.
--
Ticket URL: <https://code.djangoproject.com/ticket/30138>
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/056.e44dec2b5e2835441fd29ff490ebed8a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.