Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed loaddata to display 'No fixtures found' and 'Loading XXX fixt…

…ures' 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
  • Loading branch information...
commit 3911ee093139016feea7d71535414d6e8a6b4bdd 1 parent 2863b28
Adrian Holovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/core/management/commands/loaddata.py
6 django/core/management/commands/loaddata.py
View
@@ -58,7 +58,7 @@ def handle(self, *fixture_labels, **options):
else:
formats = []
- if verbosity > 0:
+ if verbosity > 2:
if formats:
print "Loading '%s' fixtures..." % fixture_name
else:
@@ -106,7 +106,7 @@ def handle(self, *fixture_labels, **options):
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 @@ def handle(self, *fixture_labels, **options):
transaction.leave_transaction_management()
if count[0] == 0:
- if verbosity > 0:
+ if verbosity > 2:
print "No fixtures found."
else:
if verbosity > 0:
Please sign in to comment.
Something went wrong with that request. Please try again.