Solving problem of compatibility (commit_on_success & Django > 1.6)
parent
692ed44cb3
commit
5c32cc574f
|
@ -22,6 +22,7 @@ from questionnaire.utils import numal_sort, split_numal
|
|||
from questionnaire.request_cache import request_cache
|
||||
from questionnaire.dependency_checker import dep_check
|
||||
from questionnaire import profiler
|
||||
from compat import commit_on_success
|
||||
import logging
|
||||
import random
|
||||
from hashlib import md5
|
||||
|
@ -309,7 +310,7 @@ def redirect_to_prev_questionnaire(request):
|
|||
return HttpResponseRedirect('/')
|
||||
|
||||
|
||||
@transaction.commit_on_success
|
||||
@commit_on_success
|
||||
def questionnaire(request, runcode=None, qs=None):
|
||||
"""
|
||||
Process submit answers (if present) and redirect to next page
|
||||
|
|
Loading…
Reference in New Issue