#30828: Add ManyToMany relationships in bulk -------------------------------------+------------------------------------- Reporter: David Foster | Owner: David | Foster Type: New feature | Status: assigned Component: Database layer | Version: master (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Simon Charette): > But you can't do some thing like adding the relations ... all at once. `.bulk_create(ignore_conflicts=True)` [https://github.com/django/django/pull/11899#pullrequestreview-301073824 works reasonably well for this purpose] with a small boilerplate increase at the profit of readability. The latter also works for manually defined `through` with fields without defaults. -- Ticket URL: <https://code.djangoproject.com/ticket/30828#comment:7> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.226505f35cd7ef7674a469b4b3cdfa32%40djangoproject.com.