app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 04 Aug 2009 17:00:46 +0200
changeset 2727 19e985f09de8
parent 54 03e267d67478
permissions -rw-r--r--
ViewResults for Surveys is now showing all SurveyRecords. The redirect will redirect the user to the viewing of a single SurveyRecord.

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)