From 26be04c435b782b0d3561466a683152abed79d30 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 23 Apr 2020 21:29:33 +0200 Subject: [PATCH] Fields were missing in the generated CSV, better to be coherent with the header --- management/commands/export_wei_registrations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/commands/export_wei_registrations.py b/management/commands/export_wei_registrations.py index fb0398e..fc23c71 100644 --- a/management/commands/export_wei_registrations.py +++ b/management/commands/export_wei_registrations.py @@ -80,7 +80,9 @@ class Command(BaseCommand): s += sep + user.first_name s += sep + str(registration.birth_date) s += sep + registration.get_gender_display() + s += sep + user.profile.get_department_display() s += sep + str(user.profile.ens_year) + "A" + s += sep + user.profile.section_generated s += sep + bus.name s += sep + (team.name if team else "--") s += sep + ", ".join(role.name for role in membership.roles.all())