Changes between Initial Version and Version 1 of Ticket #30138
- Timestamp:
- Jan 28, 2019, 9:19:26 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30138
- Property Triage Stage Unreviewed → Accepted
- Property Summary Return pk of created objects when ignore_conflicts set True on QuerySet.bulk_create() → Allow QuerySet.bulk_create() to set pk of created objects when ignore_conflicts=True
- Property Type Uncategorized → Cleanup/optimization
-
Ticket #30138 – Description
initial v1 1 A ccording 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" ' inquery.1 As requested in ticket:28668#comment:24, here's a ticket for setting the primary keys of created objects. I tried it in PostgreSQL 10.6 and this could be supported. When `ignore_confilicts=True`, Django doesn't put `' RETURNING "mymodel"."id" '` in the query.