app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 26 Aug 2009 18:31:19 +0200
changeset 2811 c8901482dc9c
parent 54 03e267d67478
permissions -rw-r--r--
Added timeline_logic keyword argument to Program logic. This will allow us to track which Timeline logic belongs to which each Program.

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)