fix bulk processing

This commit is contained in:
Jakub Trllo 2024-08-12 12:27:59 +02:00
parent 3296079df6
commit 04b37b83c6

View file

@ -965,9 +965,11 @@ class CreateContext:
finally:
self._bulk_counter -= 1
# Trigger validation if there is no more context manager for bulk
# instance validation
if self._bulk_counter == 0:
# Trigger validation if there is no more context manager for bulk
# instance validation
if self._bulk_counter != 0:
return
(
self._bulk_instances_to_process,
instances_to_validate