From c2b00af1665fcd5fa1e92519b78980850005b292 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 27 Jun 2018 10:24:33 +0200 Subject: [PATCH] Add first names and last names --- teleforma/management/commands/teleforma-init-wifi-pass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5