app/django/core/management/commands/validate.py
author Todd Larsen <tlarsen@google.com>
Wed, 07 Jan 2009 20:30:38 +0000
changeset 774 88a827a9b614
parent 54 03e267d67478
permissions -rw-r--r--
Add hard-coded GroupApplication and OrgApplication Models. These are being hard-coded because the "real" Question/Answer/Quiz/Response implementation will not be ready any time soon. Patch by: Todd Larsen Review by: to-be-reviewed

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)