jazzband / django-simple-history

Store model history and view/revert changes from admin site.
https://django-simple-history.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.22k stars 480 forks source link

Updated bulk_create_with_history to support update_conflicts of bulk_create #1419

Open tim-schilling opened 3 days ago

tim-schilling commented 3 days ago

Description

The bulk_create queryset method allows users to utilize database's upsert functionality. Or at least something close to it. This PR seeks to support that functionality.

Some changes:

Related Issue

Fixes #1323

Motivation and Context

See description.

How Has This Been Tested?

I tested this with postgres and sqlite, we'll see what CI says 🤞

Screenshots (if appropriate):

Types of changes

Checklist: