diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-30 12:32:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-30 13:02:06 +0200 |
commit | 7e9369ced291d94830b58dc5f7edcc5b608939ff (patch) | |
tree | 2cdfff2f0bbf1b7f207ff7cafff72bb550af6799 | |
parent | 89e4c57bde7ccba2783790ca9ec23e194b35c754 (diff) | |
download | Ishtar-7e9369ced291d94830b58dc5f7edcc5b608939ff.tar.bz2 Ishtar-7e9369ced291d94830b58dc5f7edcc5b608939ff.zip |
🗃️ operation: add finds and documentation deposit dates (refs #5926)
-rw-r--r-- | archaeological_operations/migrations/0116_deposit_dates.py | 33 | ||||
-rw-r--r-- | archaeological_operations/models.py | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/archaeological_operations/migrations/0116_deposit_dates.py b/archaeological_operations/migrations/0116_deposit_dates.py new file mode 100644 index 000000000..b91af8362 --- /dev/null +++ b/archaeological_operations/migrations/0116_deposit_dates.py @@ -0,0 +1,33 @@ +# Generated by Django 2.2.24 on 2024-04-30 12:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_operations', '0115_recordrelations_import_relationship'), + ] + + operations = [ + migrations.AddField( + model_name='historicaloperation', + name='documentation_deposit_date', + field=models.DateField(blank=True, null=True, verbose_name='Documentation deposit date'), + ), + migrations.AddField( + model_name='historicaloperation', + name='finds_deposit_date', + field=models.DateField(blank=True, null=True, verbose_name='Finds deposit date'), + ), + migrations.AddField( + model_name='operation', + name='documentation_deposit_date', + field=models.DateField(blank=True, null=True, verbose_name='Documentation deposit date'), + ), + migrations.AddField( + model_name='operation', + name='finds_deposit_date', + field=models.DateField(blank=True, null=True, verbose_name='Finds deposit date'), + ), + ] diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 035ab74e2..5e8bcbc9f 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1488,12 +1488,14 @@ class Operation( blank=True, ) abstract = models.TextField(_("Abstract"), blank=True, default="") + documentation_deposit_date = models.DateField(_("Documentation deposit date"), blank=True, null=True) documentation_deadline = models.DateField( _("Deadline for submission of the documentation"), blank=True, null=True ) documentation_received = models.NullBooleanField( _("Documentation provided"), blank=True, null=True ) + finds_deposit_date = models.DateField(_("Finds deposit date"), blank=True, null=True) finds_deadline = models.DateField( _("Deadline for submission of the finds"), blank=True, null=True ) |