Fields were missing in the generated CSV, better to be coherent with the header

This commit is contained in:
Yohann D'ANELLO 2020-04-23 21:29:33 +02:00
parent 8b90380866
commit 26be04c435
1 changed files with 2 additions and 0 deletions

View File

@ -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())