app/django/core/management/commands/validate.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Fri, 01 May 2009 00:35:06 +0200
changeset 2292 80361f34c457
parent 54 03e267d67478
permissions -rw-r--r--
Add full list of accepted students Patch by: Daniel Hans

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)