From 1a143080436e109a49c9a8e3dbf78237456c3d00 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 19 Jul 2014 17:05:31 +0200 Subject: [PATCH] add level script --- .../commands/teleforma-exam-print-levels.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 teleforma/management/commands/teleforma-exam-print-levels.py diff --git a/teleforma/management/commands/teleforma-exam-print-levels.py b/teleforma/management/commands/teleforma-exam-print-levels.py new file mode 100644 index 00000000..fd1a99d7 --- /dev/null +++ b/teleforma/management/commands/teleforma-exam-print-levels.py @@ -0,0 +1,20 @@ +from optparse import make_option +from django.conf import settings +from django.core.management.base import BaseCommand, CommandError +from django.contrib.auth.models import User +from django.template.defaultfilters import slugify +from telemeta.models import * +from telemeta.util.unaccent import unaccent +from teleforma.exam.models import * +import logging +import codecs + + +class Command(BaseCommand): + help = "Print quota levels" + + def handle(self, *args, **options): + qs=Quota.objects.all() + for q in qs: + print q.corrector, q.level + -- 2.39.5