Fix cookie configuration and update destinataer workflow
- 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
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
Destinatär: {{ destinataer.get_full_name }}
|
||||
</h1>
|
||||
<div>
|
||||
<a href="{% url 'stiftung:foerderung_create' %}?destinataer={{ destinataer.pk }}" class="btn btn-success me-2">
|
||||
<i class="fas fa-gift me-2"></i>Neue Förderung
|
||||
<a href="{% url 'stiftung:unterstuetzung_create' %}?destinataer={{ destinataer.pk }}" class="btn btn-success me-2">
|
||||
<i class="fas fa-heart me-2"></i>Neue Unterstützung
|
||||
</a>
|
||||
|
||||
<!-- Edit Mode Toggle Buttons -->
|
||||
|
||||
Reference in New Issue
Block a user