diff options
Diffstat (limited to 'testapp/exam/views.py')
-rw-r--r-- | testapp/exam/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testapp/exam/views.py b/testapp/exam/views.py index ffb1b1e..d0e3ddc 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -129,8 +129,8 @@ def edit_question(request): type = request.POST.getlist('type') active = request.POST.getlist('active') j = 0 - for i in editquestionlist: - question = Question.objects.get(id=i) + for id_list in editquestionlist: + question = Question.objects.get(id=id_list) question.summary = summary[j] question.description = description[j] question.points = points[j] |