clokep / django-querysetsequence

Chain multiple (disparate) QuerySets in Django
https://django-querysetsequence.readthedocs.io/
ISC License
107 stars 25 forks source link

Support Django 4.1 fields for `bulk_create()` #94

Closed clokep closed 2 years ago

clokep commented 2 years ago

See Django 4.1 release notes:

QuerySet.bulk_create() now supports updating fields when a row insertion fails uniqueness constraints. This is supported on MariaDB, MySQL, PostgreSQL, and SQLite 3.24+.

The update_conflicts, update_fields, and unique_fields parameters were added to support updating fields when a row insertion fails on conflict.