]> git.parisson.com Git - teleforma.git/commitdiff
add level script
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 15:05:31 +0000 (17:05 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 15:05:31 +0000 (17:05 +0200)
teleforma/management/commands/teleforma-exam-print-levels.py [new file with mode: 0644]

diff --git a/teleforma/management/commands/teleforma-exam-print-levels.py b/teleforma/management/commands/teleforma-exam-print-levels.py
new file mode 100644 (file)
index 0000000..fd1a99d
--- /dev/null
@@ -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
+