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