From: Guillaume Pellerin Date: Thu, 23 Jun 2022 14:42:53 +0000 (+0200) Subject: fix import, aadd wifi accounts X-Git-Tag: 2.7.1~43 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=94607bcc2874a2d23648b39d9e7107b96d7b977e;p=teleforma.git fix import, aadd wifi accounts --- 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'))