app/django/core/management/commands/validate.py
author Todd Larsen <tlarsen@google.com>
Fri, 14 Nov 2008 06:36:42 +0000
changeset 480 9b07ddeb1412
parent 54 03e267d67478
permissions -rw-r--r--
For those times when sed isn't enough, but awk is too much, there's munge.py... Patch by: Todd Larsen

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)