From f967a0bf09b4ba9138fd1156e0f4792e33f3ab0a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 15 Jul 2015 12:42:21 +0200 Subject: [PATCH] simplify wifi login --- teleforma/management/commands/teleforma-init-wifi-pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-init-wifi-pass.py b/teleforma/management/commands/teleforma-init-wifi-pass.py index 31dcab03..254a0b7a 100644 --- a/teleforma/management/commands/teleforma-init-wifi-pass.py +++ b/teleforma/management/commands/teleforma-init-wifi-pass.py @@ -26,7 +26,7 @@ class Command(BaseCommand): for user in User.objects.all(): profile = user.profile.get() if not profile.wifi_pass: - profile.wifi_login = user.username + '.' + args[-1] + profile.wifi_login = user.username profile.wifi_pass = id_generator(8) profile.save() f.write(profile.wifi_login + ',' + profile.wifi_pass + '\n') -- 2.39.5