From 4d988ca1d79b18c430023bd37340b1cb6e3c4f2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20J=C3=BClg?= <tobias.juelg@tum.de>
Date: Sat, 7 May 2022 14:55:54 +0200
Subject: [PATCH] Session title can be changed in settings

---
 management/forms.py                                   | 2 +-
 management/templates/management/session_settings.html | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/management/forms.py b/management/forms.py
index 6f22792..1c3ad06 100644
--- a/management/forms.py
+++ b/management/forms.py
@@ -135,7 +135,7 @@ class SessionSettingsForm(AddSessionForm):
 
     class Meta:
         model = Session
-        fields = ('start_date', 'meeting_link', 'invite_text')
+        fields = ('title', 'start_date', 'meeting_link', 'invite_text')
         labels = {
             'start_date': 'Meeting start (optional)',
             'meeting_link': 'Link to meeting call platform (optional)',
diff --git a/management/templates/management/session_settings.html b/management/templates/management/session_settings.html
index 190d56d..cf5cc2f 100644
--- a/management/templates/management/session_settings.html
+++ b/management/templates/management/session_settings.html
@@ -17,6 +17,7 @@
 
             {{ form|as_crispy_errors }}
 
+            {{ form.title|as_crispy_field }}
             {{ form.start_date|as_crispy_field }}
             {{ form.meeting_link|as_crispy_field }}
 
-- 
GitLab