-
- # Start transaction management.
- # SQLite will choke on generating thumbnails
- use_transaction = not connection.features.autocommits_when_autocommit_is_off
- if use_transaction:
- transaction.commit_unless_managed()
- transaction.enter_transaction_management()
- transaction.managed(True)
- else:
- print 'WARNING: Not using transaction management.'
-