|
|
|
@ -897,8 +897,8 @@ class UserListExportView(LoginRequiredMixin, View): |
|
|
|
|
|
|
|
|
|
|
|
# Write header |
|
|
|
# Write header |
|
|
|
headers = [ |
|
|
|
headers = [ |
|
|
|
'Prenom', 'Nom', 'Club', 'Email', 'Telephone', |
|
|
|
'Prenom', 'Nom', 'Club', 'Email', 'Telephone', 'Username', |
|
|
|
'origine', 'Actif', 'Inscription', 'Tournois' |
|
|
|
'Origine', 'Actif', 'Inscription', 'Tournois' |
|
|
|
] |
|
|
|
] |
|
|
|
response.write('\t'.join(headers) + '\n') |
|
|
|
response.write('\t'.join(headers) + '\n') |
|
|
|
|
|
|
|
|
|
|
|
@ -910,6 +910,7 @@ class UserListExportView(LoginRequiredMixin, View): |
|
|
|
str(user.latest_event_club_name() or ''), |
|
|
|
str(user.latest_event_club_name() or ''), |
|
|
|
str(user.email or ''), |
|
|
|
str(user.email or ''), |
|
|
|
str(user.phone or ''), |
|
|
|
str(user.phone or ''), |
|
|
|
|
|
|
|
user.username, |
|
|
|
str(user.get_origin_display()), |
|
|
|
str(user.get_origin_display()), |
|
|
|
'Oui' if user.is_active else 'Non', |
|
|
|
'Oui' if user.is_active else 'Non', |
|
|
|
user.date_joined.strftime('%Y-%m-%d %H:%M:%S'), |
|
|
|
user.date_joined.strftime('%Y-%m-%d %H:%M:%S'), |
|
|
|
|