python
Django bulk get or create
ignore_conflicts=True means if there is an object that already created it skips it. Useful when dont want duplicates on the database or to avoid conflict errors.
IntegrationRequirement.objects.bulk_create(objs=objs, ignore_conflicts=True)
Was this helpful?
Similar Posts