app/django/core/management/commands/validate.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Fri, 01 May 2009 00:31:39 +0200
changeset 2290 a9f77dea9e73
parent 54 03e267d67478
permissions -rw-r--r--
Ignore zip files and build directory Patch by: Sverre Rabbelier

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)