Ticket #6820: rollback.diff

File rollback.diff, 470 bytes (added by dougvanhorn, 16 years ago)

Adds a rollback just before running the flush.

  • django/core/management/commands/flush.py

     
    4545
    4646        if confirm == 'yes':
    4747            try:
     48                transaction.rollback()
    4849                cursor = connection.cursor()
    4950                for sql in sql_list:
    5051                    cursor.execute(sql)
Back to Top