]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 17 Jun 2021 16:25:59 +0000 (18:25 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 17 Jun 2021 16:25:59 +0000 (18:25 +0200)
teleforma/management/commands/teleforma-export-wifi-accounts.py

index 6847dfbbcf892de2210ab40b39cd679d7d0a1dbe..87efeb42300ada5bab47638234adf557eb4601c6 100644 (file)
@@ -27,8 +27,8 @@ class Command(BaseCommand):
                 student = students[0]
                 if student.is_subscribed and user.is_active and student.period == period:
                     data = []
-                    data.append(u.first_name)
-                    data.append(u.last_name)
+                    data.append(user.first_name)
+                    data.append(user.last_name)
                     data.append(period.date_begin)
                     data.append(period.date_end)
                     # data.append(p.wifi_login)