How to delete or restore a trainee
Club Admin · Bahasa Melayu below
AAU Club Manager uses soft-delete for trainees — they're marked inactive but the record + display ID stay in the database. This preserves payment history and prevents ID recycling.
Delete flow (2 steps)
Step 1: Remove from club 1. Sidebar → Trainees → open trainee → Remove from Club 2. Confirm — this deactivates their category enrollments, cancels outstanding invoices, and if they have no other active clubs, deactivates the trainee record.
Step 2 (optional): Full delete
1. Once inactive → open the trainee → Delete Trainee
2. Confirms full soft-delete: is_active=False, invoices cancelled, sessions marked historical.
What survives
- Paid invoices — preserved for accounting/audit
- Attendance history — preserved
- Assessment scores — preserved
- Certificates — preserved
- Tournament participation — preserved
What stops
- New invoices — none generated after delete
- Payment reminders — silenced
- Parent portal — trainee hidden from My Children
- Coach rosters — trainee no longer appears
- Category enrollments — deactivated
Restore
- Sidebar → Trainees → filter Show inactive
- Open the trainee → Restore
- Trainee reactivates as
is_active=Truebut their category enrollments stay inactive — re-enroll them where needed.
Hard delete (irreversible)
Only via Django admin or database console — not exposed in the UI. Reserved for GDPR right-to-erasure or genuine data cleanup.
Cara padam atau restore pelatih
Soft-delete: pelatih ditanda inaktif, rekod kekal.
Padam (2 langkah)
- Trainees → buka pelatih → Remove from Club — deaktif enrollment, batal invois belum bayar
- Selepas inaktif → Delete Trainee — soft-delete penuh
Yang kekal
Invois berbayar, kehadiran, penilaian, sijil, kejohanan — semua disimpan untuk audit.
Yang berhenti
Invois baru, peringatan, portal ibu bapa, roster jurulatih.
Restore
- Trainees → filter Show inactive
- Buka → Restore — aktif semula (enrollment kena buat baru)