From dec2d98ca1bbfdf3cdc711e6a649ed7b5f8c6ce0 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 18 Feb 2025 11:11:08 +0100 Subject: [PATCH] Adds username column --- tournaments/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'),