From 0b7f5def7fed7c3579604dfe34027c2927d6eace Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 17 Aug 2007 00:11:56 +0000 Subject: [PATCH] Added fix for verbosity handling in loaddata and test commands. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5913 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/loaddata.py | 2 +- django/core/management/commands/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index 028d075428..82b8968c61 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -20,7 +20,7 @@ class Command(BaseCommand): self.style = no_style() - verbosity = options.get('verbosity', 1) + verbosity = int(options.get('verbosity', 1)) # Keep a count of the installed objects and fixtures count = [0, 0] diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 865ed01e5f..8e27fd5606 100644 --- a/django/core/management/commands/test.py +++ b/django/core/management/commands/test.py @@ -11,7 +11,7 @@ class Command(BaseCommand): from django.conf import settings from django.db.models import get_app, get_apps - verbosity = options.get('verbosity', 1) + verbosity = int(options.get('verbosity', 1)) interactive = options.get('interactive', True) test_path = settings.TEST_RUNNER.split('.')