app/django/core/management/commands/validate.py
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 04 Feb 2009 21:10:34 +0000
changeset 1208 10cef80ad917
parent 54 03e267d67478
permissions -rw-r--r--
Added new helper module for timelines. This helps to determine wether a given event or period has begun/isactive/ended. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed

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)