Adds username column

bracket-feature
Laurent 9 months ago
parent d19da44412
commit dec2d98ca1
  1. 5
      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'),

Loading…
Cancel
Save