Kaydet (Commit) ff707f50 authored tarafından Gary Wilson Jr's avatar Gary Wilson Jr

Fixed #6419 -- Fixed verbosity level checks in loaddata command that were raised…

Fixed #6419 -- Fixed verbosity level checks in loaddata command that were raised to unobtainable levels in [6883].


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 3fd5b5d6
......@@ -59,7 +59,7 @@ class Command(BaseCommand):
else:
formats = []
if verbosity > 2:
if verbosity >= 2:
if formats:
print "Loading '%s' fixtures..." % fixture_name
else:
......@@ -109,7 +109,7 @@ class Command(BaseCommand):
return
fixture.close()
except:
if verbosity > 2:
if verbosity >= 2:
print "No %s fixture '%s' in %s." % \
(format, fixture_name, humanize(fixture_dir))
......@@ -125,7 +125,7 @@ class Command(BaseCommand):
transaction.leave_transaction_management()
if count[0] == 0:
if verbosity > 2:
if verbosity >= 2:
print "No fixtures found."
else:
if verbosity > 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment