app/django/core/management/commands/validate.py
author Sverre Rabbelier <srabbelier@gmail.com>
Tue, 21 Apr 2009 14:36:47 +0000
changeset 2269 f11596eccd92
parent 54 03e267d67478
permissions -rw-r--r--
Fixing the build now that emails have been tested. Patch by: Augie Fackler

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)