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
This commit is contained in:
Russell Keith-Magee 2007-08-17 00:11:56 +00:00
parent 9c55bbdef7
commit 0b7f5def7f
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Command(BaseCommand):
self.style = no_style() self.style = no_style()
verbosity = options.get('verbosity', 1) verbosity = int(options.get('verbosity', 1))
# Keep a count of the installed objects and fixtures # Keep a count of the installed objects and fixtures
count = [0, 0] count = [0, 0]

View File

@ -11,7 +11,7 @@ class Command(BaseCommand):
from django.conf import settings from django.conf import settings
from django.db.models import get_app, get_apps 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) interactive = options.get('interactive', True)
test_path = settings.TEST_RUNNER.split('.') test_path = settings.TEST_RUNNER.split('.')