app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 25 Apr 2009 20:52:03 +0200
changeset 2280 157f6b8de010
parent 54 03e267d67478
permissions -rw-r--r--
Show all Co-Mentors on the Student Project public page. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed

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)