Ticket #4371: dont_suppress_skip_messages.diff

File dont_suppress_skip_messages.diff, 868 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)

A better solution, IMO: Show "skipping fixture" messages even when verbosity is 0. You may want to change this to use whatever Django's error conventions are, rather than a plain print statement.

  • core/management.py

     
    13531353            else:
    13541354                formats = []
    13551355
    1356         if verbosity > 0:
    1357             if formats:
     1356        if formats:
     1357            if verbosity > 0:
    13581358                print "Loading '%s' fixtures..." % fixture_name
    1359             else:
    1360                 print "Skipping fixture '%s': %s is not a known serialization format" % (fixture_name, format)
    1361 
     1359        else:
     1360            print "Skipping fixture '%s': %s is not a known serialization format" % (fixture_name, format)
     1361       
    13621362        for fixture_dir in app_fixtures + list(settings.FIXTURE_DIRS) + ['']:
    13631363            if verbosity > 1:
    13641364                print "Checking %s for fixtures..." % humanize(fixture_dir)
Back to Top