Solving problem of compatibility (commit_on_success & Django > 1.6)

dj111py38
eugena 2015-08-04 10:28:20 +05:00
parent 692ed44cb3
commit 5c32cc574f
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -32,6 +32,7 @@ setup(
install_requires=[
'django',
'django-transmeta',
'django-compat',
'pyyaml',
'pyparsing'
],