Changeset 2467
- Timestamp:
- 03/01/06 23:04:21 (3 years ago)
- Files:
-
- django/branches/magic-removal/AUTHORS (modified) (1 diff)
- django/branches/magic-removal/django/core/management.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/AUTHORS
r2455 r2467 102 102 Tom Tobin 103 103 Joe Topjian <http://joe.terrarum.net/geek/code/python/django/> 104 Malcolm Tredinnick 104 105 Amit Upadhyay 105 106 Milton Waddams django/branches/magic-removal/django/core/management.py
r2464 r2467 419 419 pending_references.update(references) 420 420 sql.extend(_get_sql_for_pending_references(model, pending_references)) 421 sql = "\n".join(sql)422 421 print "Creating table %s" % model._meta.db_table 423 cursor.execute(sql) 422 for statement in sql: 423 cursor.execute(statement) 424 424 425 425 for model in model_list: … … 427 427 sql = _get_many_to_many_sql_for_model(model) 428 428 if sql: 429 sql = '\n'.join(sql).strip()430 429 print "Creating many-to-many tables for %s model" % model.__name__ 431 cursor.execute(sql) 430 for statement in sql: 431 cursor.execute(statement) 432 432 433 433 transaction.commit_unless_managed()
