app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 10:18:14 +0200
changeset 2626 17dd9ada27cb
parent 54 03e267d67478
permissions -rw-r--r--
Fixed bug where grade_decision would not be properly set in 2 out of 4 cases.

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)