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('.')