app/django/core/management/commands/validate.py
author Daniel Hans <Daniel.M.Hans@gmail.com>
Thu, 29 Oct 2009 22:58:06 +0100
changeset 3066 45e2c3e70761
parent 54 03e267d67478
permissions -rw-r--r--
If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page.

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)