summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-16 19:04:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-16 19:04:34 +0200
commitfd5e330ede426a7152deab41620b6a60b63df220 (patch)
tree02fb227e93c929db6dc4a3d6ef254516bdc6f2fe /ishtar_common
parent0f88ac0c7abd4ecb5e9bed54474af23752efcbcd (diff)
downloadIshtar-fd5e330ede426a7152deab41620b6a60b63df220.tar.bz2
Ishtar-fd5e330ede426a7152deab41620b6a60b63df220.zip
🗃️ context records new fields, default values, admin interface - town add notice (refs #6024)
Town: - notice Context records: - excavated length - excavated width - structure - texture - colors - details on colors - inclusions
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/migrations/0249_town_notice.py24
-rw-r--r--ishtar_common/models_common.py1
2 files changed, 25 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0249_town_notice.py b/ishtar_common/migrations/0249_town_notice.py
new file mode 100644
index 000000000..f4961a6a7
--- /dev/null
+++ b/ishtar_common/migrations/0249_town_notice.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.2.24 on 2024-09-16 17:22
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('ishtar_common', '0248_ishtarsiteprofile_no_context_button'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='town',
+ name='notice',
+ field=models.TextField(blank=True, default='', verbose_name='Notice'),
+ ),
+ migrations.AlterField(
+ model_name='ishtarsiteprofile',
+ name='no_context_button',
+ field=models.ForeignKey(blank=True, help_text='If provided a button is displayed on find add page to create a "No context" find', null=True, on_delete=django.db.models.deletion.SET_NULL, to='archaeological_context_records.ContextRecord', verbose_name='Context record for no context button'),
+ ),
+ ]
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index 98dbb047b..9aec54534 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -3398,6 +3398,7 @@ class Town(GeographicItem, Imported, DocumentItem, MainItem, models.Model):
)
limit = models.MultiPolygonField(_("Limit"), blank=True, null=True)
numero_insee = models.CharField("Code commune (numéro INSEE)", max_length=120)
+ notice = models.TextField(_("Notice"), blank=True, default="")
departement = models.ForeignKey(
Department,
verbose_name=_("Department"),