Undoes last request_cache change as it leads to errors
parent
9d34dcf55f
commit
85787629ee
|
@ -110,7 +110,7 @@ def check_parser(runinfo, exclude=[]):
|
||||||
|
|
||||||
return satisfies_checks
|
return satisfies_checks
|
||||||
|
|
||||||
@request_cache(keyfn=lambda *args: args[0].id)
|
@request_cache()
|
||||||
def question_satisfies_checks(question, runinfo, checkfn=None):
|
def question_satisfies_checks(question, runinfo, checkfn=None):
|
||||||
checkfn = checkfn or check_parser(runinfo)
|
checkfn = checkfn or check_parser(runinfo)
|
||||||
return checkfn(question.checks)
|
return checkfn(question.checks)
|
||||||
|
@ -843,6 +843,7 @@ def dep_check(expr, runinfo, answerdict):
|
||||||
questionset__questionnaire = questionnaire)
|
questionset__questionnaire = questionnaire)
|
||||||
except Question.DoesNotExist:
|
except Question.DoesNotExist:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if check_question in answerdict:
|
if check_question in answerdict:
|
||||||
# test for membership in multiple choice questions
|
# test for membership in multiple choice questions
|
||||||
# FIXME: only checking answerdict
|
# FIXME: only checking answerdict
|
||||||
|
|
Loading…
Reference in New Issue