app/django/core/management/commands/validate.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 26 May 2009 22:04:52 +0200
changeset 2356 7c0a55e8e46f
parent 54 03e267d67478
permissions -rw-r--r--
Some small fixes to unique_user_id_adder module.

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)