app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 29 Jun 2009 14:01:24 +0200
changeset 2444 6276c3340c30
parent 54 03e267d67478
permissions -rw-r--r--
Separated two survey types out of the main survey model. These models are ProjectSurvey and GradingProjectSurvey.

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)