fix: Integrate official aCAPTCHA v1.1 Web Component in GuestSignupModal and disable seed_data execution in production docker-compose

This commit is contained in:
Richard
2026-07-31 11:20:55 +02:00
parent 782d4d72a3
commit 5f2061f013
9 changed files with 128 additions and 93 deletions
@@ -1,4 +1,5 @@
from django.core.management.base import BaseCommand
from django.conf import settings
from apps.users.models import User, RegistrationDomainRule, RegistrationRestrictionSetting
from apps.events.models import Skill, Event, TaskArea, Shift, ShiftSignup, EventTemplate
from apps.branding.models import BrandingSetting
@@ -7,6 +8,10 @@ class Command(BaseCommand):
help = "Populate database with initial demo data including Demo Admin & Demo User"
def handle(self, *args, **options):
if not settings.DEBUG:
self.stdout.write(self.style.WARNING("seed_data wird im Produktionsmodus (DEBUG=False) übersprungen."))
return
# 1. Branding
branding = BrandingSetting.get_solo()
branding.app_name = "Veranstaltungsschichtplaner (Dev)"