From 94607bcc2874a2d23648b39d9e7107b96d7b977e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Jun 2022 16:42:53 +0200 Subject: [PATCH] fix import, aadd wifi accounts --- .../management/commands/teleforma-export-wifi-accounts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-export-wifi-accounts.py b/teleforma/management/commands/teleforma-export-wifi-accounts.py index 39ddbaea..544a3f22 100644 --- a/teleforma/management/commands/teleforma-export-wifi-accounts.py +++ b/teleforma/management/commands/teleforma-export-wifi-accounts.py @@ -4,6 +4,8 @@ from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from django.template.defaultfilters import slugify from teleforma.exam.models import * +from teleforma.models.core import * +from teleforma.models.crfpa import * import logging import codecs @@ -36,8 +38,8 @@ class Command(BaseCommand): data.append(str(period.date_end)) data.append(period.date_begin) data.append(period.date_end) - # data.append(p.wifi_login) - # data.append(p.wifi_pass) + data.append(p.wifi_login) + data.append(p.wifi_pass) data.append('\n') s = ','.join(data) f.write(s.encode('utf8')) -- 2.39.5