From 36c66a803cb19c1178fc6110b25c0834f4de718b Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Sun, 21 Sep 2025 22:52:55 +0200 Subject: [PATCH] Fix cookie configuration and update destinataer workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed empty cookie name issue in production by improving fallback logic - Changed 'Neue Förderung' to 'Neue Unterstützung' in destinataer detail page - Updated icon from fa-gift to fa-heart for better UX - Workflow now correctly uses unterstuetzung_create with destinataer pre-population Resolves CookieError: Illegal key '' in production environment --- app/core/settings.py | 4 ++-- app/templates/stiftung/destinataer_detail.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/core/settings.py b/app/core/settings.py index 4d1d3ed..833f65c 100644 --- a/app/core/settings.py +++ b/app/core/settings.py @@ -121,8 +121,8 @@ GRAMPS_USERNAME = os.environ.get("GRAMPS_USERNAME", "") GRAMPS_PASSWORD = os.environ.get("GRAMPS_PASSWORD", "") # Session Configuration -SESSION_COOKIE_NAME = os.environ.get("SESSION_COOKIE_NAME", "stiftung_sessionid") -CSRF_COOKIE_NAME = os.environ.get("CSRF_COOKIE_NAME", "stiftung_csrftoken") +SESSION_COOKIE_NAME = os.environ.get("SESSION_COOKIE_NAME") or "stiftung_sessionid" +CSRF_COOKIE_NAME = os.environ.get("CSRF_COOKIE_NAME") or "stiftung_csrftoken" # HTTPS Security Settings (production) if not DEBUG: diff --git a/app/templates/stiftung/destinataer_detail.html b/app/templates/stiftung/destinataer_detail.html index 7afe50f..928b16f 100644 --- a/app/templates/stiftung/destinataer_detail.html +++ b/app/templates/stiftung/destinataer_detail.html @@ -14,8 +14,8 @@ Destinatär: {{ destinataer.get_full_name }}
- - Neue Förderung + + Neue Unterstützung