Changes between Version 6 and Version 7 of Ticket #26043, comment 4
- Timestamp:
- Jan 7, 2016, 3:55:53 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26043, comment 4
v6 v7 12 12 if (db.settings_dict['ATOMIC_REQUESTS'] 13 13 and db.alias not in non_atomic_requests): 14 view = transaction.atomic(using=db.alias)(yet_another_wrapper( view))14 view = transaction.atomic(using=db.alias)(yet_another_wrapper(db, view)) 15 15 return view 16 16 17 def yet_another_wrapper( view):17 def yet_another_wrapper(db, view): 18 18 def wrapped_view(request, *args, **kwargs): 19 19 # do what legacy systems usually do