Skip to content

Commit

Permalink
testing with an added lock
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivrij committed Oct 19, 2023
1 parent 9e3b604 commit d6ee2f8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/drc/datamodel/migrations/0064_bestandsdeel_lock.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
6 changes: 6 additions & 0 deletions src/drc/datamodel/models/bestandsdeel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d6ee2f8

Please sign in to comment.