Here are the examples of the python api django.db.transaction taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: tendenci Source File: compat.py
def get_atomic_func():
try:
from django.db.transaction import atomic as atomic_func
except ImportError:
from django.db.transaction import commit_on_success as atomic_func
return atomic_func