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"