app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Fri, 18 Sep 2009 18:40:17 +0200
changeset 2951 c904033c58e1
parent 54 03e267d67478
permissions -rw-r--r--
Added listing of all Accepted GHOPOrganizations to the Program View. Reviewed by: Lennard de Rijk

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)