app/django/core/management/commands/validate.py
author Augie Fackler <durin42@gmail.com>
Sun, 08 Feb 2009 03:36:05 +0000
changeset 1251 106e1b6e7199
parent 54 03e267d67478
permissions -rw-r--r--
Add myself to authors since I was missing. (Also, a test commit for buildbot) Patch By: Augie Fackler <durin42@gmail.com> Review By: TBR

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)