From 3911ee093139016feea7d71535414d6e8a6b4bdd Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 4 Dec 2007 06:52:13 +0000 Subject: [PATCH] Changed loaddata to display 'No fixtures found' and 'Loading XXX fixtures' only if verbosity level is greater than 2. It's not necessary to display those messages all of the time, and they're confusing to new users. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6883 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/loaddata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index 83fc9b8ac9..216db09141 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -58,7 +58,7 @@ class Command(BaseCommand): else: formats = [] - if verbosity > 0: + if verbosity > 2: if formats: print "Loading '%s' fixtures..." % fixture_name else: @@ -106,7 +106,7 @@ class Command(BaseCommand): return fixture.close() except: - if verbosity > 1: + if verbosity > 2: print "No %s fixture '%s' in %s." % \ (format, fixture_name, humanize(fixture_dir)) @@ -122,7 +122,7 @@ class Command(BaseCommand): transaction.leave_transaction_management() if count[0] == 0: - if verbosity > 0: + if verbosity > 2: print "No fixtures found." else: if verbosity > 0: