app/django/core/management/commands/validate.py
author Todd Larsen <tlarsen@google.com>
Tue, 20 Jan 2009 21:26:34 +0000 (2009-01-20)
changeset 849 c193ac0ef593
parent 54 03e267d67478
permissions -rw-r--r--
Support HTML tags in form field example_text column. Improve the Program Model example_text as an example. Patch by: Todd Larsen Review 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)