Ticket #2284: syncdb-whitespace-fix.diff
File syncdb-whitespace-fix.diff, 785 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
497 497 if initial_sql: 498 498 print "Installing initial data for %s model" % model._meta.object_name 499 499 try: 500 for sql in initial_sql: 500 for sql in [sql.strip() for sql in initial_sql]: 501 if not sql: continue 502 print "Executing '%s'" % sql 501 503 cursor.execute(sql) 502 504 except Exception, e: 503 505 sys.stderr.write("Failed to install initial SQL data for %s model: %s" % \