summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
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"),