app/django/core/management/commands/validate.py
author Daniel Bentley <dbentley@google.com>
Wed, 01 Apr 2009 12:01:58 +0000
changeset 2049 d9adbaf1c30f
parent 54 03e267d67478
permissions -rw-r--r--
Some fixes to lists helper to reduce mutation. Also added some TODO's to describe the plan. Patch by: Dan Bentley

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)