From: Guillaume Pellerin Date: Wed, 27 Jun 2018 08:24:33 +0000 (+0200) Subject: Add first names and last names X-Git-Tag: 1.3~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c2b00af1665fcd5fa1e92519b78980850005b292;p=teleforma.git Add first names and last names --- diff --git a/teleforma/management/commands/teleforma-init-wifi-pass.py b/teleforma/management/commands/teleforma-init-wifi-pass.py index 1b5442de..e9657096 100644 --- a/teleforma/management/commands/teleforma-init-wifi-pass.py +++ b/teleforma/management/commands/teleforma-init-wifi-pass.py @@ -30,7 +30,8 @@ class Command(BaseCommand): profile.wifi_login = user.username profile.wifi_pass = id_generator(8) profile.save() - f.write(profile.wifi_login + ',' + profile.wifi_pass + '\n') + f.write(user.first_name + ',' + user.last_name + ',' + + profile.wifi_login + ',' + profile.wifi_pass + '\n') except: continue