app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 05 Aug 2009 22:00:08 +0200
changeset 2733 054a2227249c
parent 54 03e267d67478
permissions -rw-r--r--
Added and enabled access check for viewing SurveyRecords. Note that viewing ProjectSurveys or ProjectGradingSurveys are still dev only.

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)