Ticket #6419: loaddata.patch
File loaddata.patch, 1.1 KB (added by , 17 years ago) |
---|
-
core/management/commands/loaddata.py
59 59 else: 60 60 formats = [] 61 61 62 if verbosity > 2:62 if verbosity >= 2: 63 63 if formats: 64 64 print "Loading '%s' fixtures..." % fixture_name 65 65 else: … … 109 109 return 110 110 fixture.close() 111 111 except: 112 if verbosity > 2:112 if verbosity >= 2: 113 113 print "No %s fixture '%s' in %s." % \ 114 114 (format, fixture_name, humanize(fixture_dir)) 115 115 … … 125 125 transaction.leave_transaction_management() 126 126 127 127 if count[0] == 0: 128 if verbosity > 2:128 if verbosity >= 2: 129 129 print "No fixtures found." 130 130 else: 131 131 if verbosity > 0: