We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419f270 commit bc87a57Copy full SHA for bc87a57
simple_history/utils.py
@@ -114,7 +114,7 @@ def bulk_create_with_history(
114
cumulative_filter = (cumulative_filter | q) if cumulative_filter else q
115
existing_objs_ids = list(
116
model_manager.filter(cumulative_filter).values_list("pk", flat=True)
117
- )
+ ) if cumulative_filter else []
118
objs_with_id = model_manager.bulk_create(
119
objs, batch_size=batch_size, ignore_conflicts=ignore_conflicts
120
)
0 commit comments