def atomic_with_signals(func):
try:<EOL><INDENT>from reversion.revisions import create_revision<EOL>return transaction.atomic(create_revision()(transaction_signals(func)))<EOL><DEDENT>except ImportError:<EOL><INDENT>return transaction.atomic(transaction_signals(func))<EOL><DEDENT>
Atomic decorator with transaction signals.