Add phone to user export

bracket-feature
Laurent 9 months ago
parent 81b6b69d1f
commit a393526806
  1. 5
      tournaments/views.py

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

Loading…
Cancel
Save