Browse files

[1.2.X] Fixed the ugly spacing of 'BEGIN;' and 'COMMIT;' in the outpu…

…t of the sql/sqlall commands. They're no longer smooshed with the rest of the SQL.

Backport of r13993 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4890ff1 commit c120794b9d1efa20732ec3bf389e7487a7408e8b @freakboy3742 freakboy3742 committed Oct 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/
@@ -225,10 +225,10 @@ def execute(self, *args, **options):
from django.db import connections, DEFAULT_DB_ALIAS
connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
if connection.ops.start_transaction_sql():
- self.stdout.write(
+ self.stdout.write( + '\n')
if self.output_transaction:
- self.stdout.write("COMMIT;") + '\n')
+ self.stdout.write('\n' +"COMMIT;") + '\n')
except CommandError, e:
self.stderr.write(smart_str('Error: %s\n' % e)))

0 comments on commit c120794

Please sign in to comment.