Bénévole : retrait de la taille de t-shirt et du régime alimentaire

Champs `tshirt_size` et `diet` supprimés du modèle `Volunteer`, des schémas
d'API, de l'import CSV/Excel (mapping, suggestions, exécution) et du jeu de
démonstration. Énum `TshirtSize` et helper `parse_tshirt_size` supprimés.
Migration 0005. Clé i18n `import.row.invalid_tshirt_size` retirée.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017uUsRg7XzopkCPWimwg9ZM
This commit is contained in:
AdamThomas
2026-09-10 22:07:00 +02:00
co-authored by Claude Sonnet 5
parent ccf3438eef
commit 609514369a
14 changed files with 46 additions and 113 deletions
-7
View File
@@ -30,7 +30,6 @@ from app.models import (
Shift,
ShiftRequiredSkill,
Skill,
TshirtSize,
Volunteer,
VolunteerSkill,
)
@@ -354,12 +353,6 @@ def build(session: Session, *, rng: random.Random | None = None) -> Summary:
last_name=last,
email=email,
phone=(f"06{rng.randint(10_000_000, 99_999_999)}" if rng.random() < 0.8 else None),
tshirt_size=(rng.choice(list(TshirtSize)) if rng.random() < 0.9 else None),
diet=(
rng.choice(["Végétarien", "Végétalien", "Sans gluten", "Sans porc"])
if rng.random() < 0.25
else None
),
)
session.add(volunteer)
session.flush()