From 3a74f34255dc8b8581dea9eecb10478fa037db61 Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Thu, 21 Sep 2023 17:24:08 +0200
Subject: [PATCH] add event details to collection

---
 .../0009_collection_event_details.py           | 18 ++++++++++++++++++
 scipost_django/series/models.py                |  7 +++++++
 2 files changed, 25 insertions(+)
 create mode 100644 scipost_django/series/migrations/0009_collection_event_details.py

diff --git a/scipost_django/series/migrations/0009_collection_event_details.py b/scipost_django/series/migrations/0009_collection_event_details.py
new file mode 100644
index 000000000..ee35e4ce6
--- /dev/null
+++ b/scipost_django/series/migrations/0009_collection_event_details.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.2.18 on 2023-09-21 15:19
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('series', '0008_alter_collections_related_names'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='collection',
+            name='event_details',
+            field=models.TextField(blank=True, help_text='The details of the event, to be displayed as information about the collection in the paper.'),
+        ),
+    ]
diff --git a/scipost_django/series/models.py b/scipost_django/series/models.py
index 243eb26e6..dd0c2e20a 100644
--- a/scipost_django/series/models.py
+++ b/scipost_django/series/models.py
@@ -64,6 +64,13 @@ class Collection(models.Model):
     )
     event_start_date = models.DateField(null=True, blank=True)
     event_end_date = models.DateField(null=True, blank=True)
+    event_details = models.TextField(
+        blank=True,
+        help_text=(
+            "The details of the event, to be displayed as information "
+            "about the collection in the paper."
+        ),
+    )
     image = models.ImageField(upload_to="series/collections/images/", blank=True)
 
     expected_authors = models.ManyToManyField(
-- 
GitLab