]> git.parisson.com Git - teleforma.git/commitdiff
slugify
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 13 Jun 2023 14:56:01 +0000 (16:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 13 Jun 2023 14:56:01 +0000 (16:56 +0200)
teleforma/management/commands/teleforma-export-wifi-accounts.py

index 726daacaa6dbacbf468b64af1f90ef7274da052e..35138b54fc895e81c9b9403071abbd22b1ceb9a1 100644 (file)
@@ -36,8 +36,8 @@ class Command(BaseCommand):
                         student.period == period and \
                         not student.platform_only:
                     data = []
-                    data.append(user.first_name)
-                    data.append(user.last_name)
+                    data.append(slugify(user.first_name))
+                    data.append(slugify(user.last_name))
                     data.append(p.wifi_login)
                     data.append(p.wifi_pass)
                     s += ','.join(data)+'\n'