#27408: Make QuerySet.bulk_create() populate fields on related models
-------------------------------------+-------------------------------------
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 | Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jarek Glowacki):
That's correct, my use case requires `for`ing through a large blob of
data, parsing it and creating several different models per iteration. So
all the `bulk_creates` happen at the end.
I'll have a crack at a PR that solves this nicely (if such a thing exists)
and get back to you.
--
Ticket URL: <https://code.djangoproject.com/ticket/27408#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 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.cb406fe781afbb4bbbc83200dd6fd9df%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.