From 0fb3192b4c2cd57756c1e15f38b5a25c3a8ed648 Mon Sep 17 00:00:00 2001 From: joerivrij Date: Mon, 23 Oct 2023 12:29:30 +0200 Subject: [PATCH] changes to lock3 --- src/drc/api/serializers/enkelvoudig_informatieobject.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drc/api/serializers/enkelvoudig_informatieobject.py b/src/drc/api/serializers/enkelvoudig_informatieobject.py index 689e88fd..0d74ac8f 100644 --- a/src/drc/api/serializers/enkelvoudig_informatieobject.py +++ b/src/drc/api/serializers/enkelvoudig_informatieobject.py @@ -238,7 +238,10 @@ def _create_bestandsdeel(self, full_size, canonical): for i in range(parts): chunk_size = min(settings.CHUNK_SIZE, full_size) BestandsDeel.objects.create( - informatieobject=canonical, omvang=chunk_size, volgnummer=i + 1, lock=canonical.lock + informatieobject=canonical, + omvang=chunk_size, + volgnummer=i + 1, + lock=canonical.lock, ) full_size -= chunk_size