From d6ee2f8feb98039f88eea1c2d877a54db91f0c00 Mon Sep 17 00:00:00 2001 From: joerivrij Date: Thu, 19 Oct 2023 14:29:00 +0200 Subject: [PATCH] testing with an added lock --- .../migrations/0064_bestandsdeel_lock.py | 18 ++++++++++++++++++ src/drc/datamodel/models/bestandsdeel.py | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 src/drc/datamodel/migrations/0064_bestandsdeel_lock.py diff --git a/src/drc/datamodel/migrations/0064_bestandsdeel_lock.py b/src/drc/datamodel/migrations/0064_bestandsdeel_lock.py new file mode 100644 index 00000000..eee71a02 --- /dev/null +++ b/src/drc/datamodel/migrations/0064_bestandsdeel_lock.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.13 on 2023-10-19 12:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('datamodel', '0063_enkelvoudiginformatieobject_trefwoorden'), + ] + + operations = [ + migrations.AddField( + model_name='bestandsdeel', + name='lock', + field=models.CharField(blank=True, help_text='Hash string, which represents id of the lock of related informatieobject', max_length=255, null=True), + ), + ] diff --git a/src/drc/datamodel/models/bestandsdeel.py b/src/drc/datamodel/models/bestandsdeel.py index 5c038384..4c36cb19 100644 --- a/src/drc/datamodel/models/bestandsdeel.py +++ b/src/drc/datamodel/models/bestandsdeel.py @@ -28,6 +28,12 @@ class BestandsDeel(models.Model): blank=True, help_text=_("De (binaire) bestandsinhoud van dit specifieke bestandsdeel."), ) + lock = models.CharField( + max_length=255, + null=True, + blank=True, + help_text=_("Hash string, which represents id of the lock of related informatieobject"), + ) class Meta: verbose_name = "bestands deel"