app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Thu, 02 Jul 2009 17:08:10 +0200
changeset 2492 6eac6cd88dad
parent 54 03e267d67478
permissions -rw-r--r--
Made the CSV exporter for Survey not rely on the BackReferenceProperty in Survey.

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)