app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 29 Sep 2009 20:11:54 +0200
changeset 2993 e412510746dc
parent 54 03e267d67478
permissions -rw-r--r--
Removed the debug logging line from the Task decorator. Also make use of the next_start_key as name for the new starting key.

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)