Ticket #3537: do_not_format_string.diff

File do_not_format_string.diff, 563 bytes (added by bluszcz@…, 18 years ago)
  • management.py

    old new def syncdb():  
    499499                    print "Installing initial data for %s model" % model._meta.object_name
    500500                    try:
    501501                        for sql in initial_sql:
    502                             sql = sql.replace('%', '%%')
    503502                            cursor.execute(sql)
    504503                    except Exception, e:
    505504                        sys.stderr.write("Failed to install initial SQL data for %s model: %s" % \
Back to Top