app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 00:59:48 +0200
changeset 2618 6a3c464f871f
parent 54 03e267d67478
permissions -rw-r--r--
Added Tasks to update/create GradingRecords for a given GradingSurveyGroup. Also added a stub to update StudentProjects for a given GradingSurveyGroup.

from django.core.management.base import NoArgsCommand

class Command(NoArgsCommand):
    help = "Validates all installed models."

    requires_model_validation = False

    def handle_noargs(self, **options):
        self.validate(display_num_errors=True)