app/django/core/management/commands/validate.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 01 Jun 2009 20:31:38 +0200
changeset 2373 05ab9393303d
parent 54 03e267d67478
permissions -rw-r--r--
Add google-visualization-python project to Melange repository. This python module will be used with our Statistics module to leverage Google Visualization API and python as a data source.

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)