Changes between Version 6 and Version 7 of Ticket #26043, comment 4


Ignore:
Timestamp:
Jan 7, 2016, 3:55:53 AM (9 years ago)
Author:
Sven R. Kunze

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26043, comment 4

    v6 v7  
    1212        if (db.settings_dict['ATOMIC_REQUESTS']
    1313                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))
    1515    return view
    1616
    17 def yet_another_wrapper(view):
     17def yet_another_wrapper(db, view):
    1818    def wrapped_view(request, *args, **kwargs):
    1919        # do what legacy systems usually do
Back to Top