From 13317f56278969cb6568026d099e15166bfc5d6c Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 13 May 2015 14:31:42 +0530 Subject: Fix test case fetching for old questions --- testapp/exam/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testapp/exam/forms.py') diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index 93584a6..74a9b5a 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -187,7 +187,7 @@ class QuestionForm(forms.ModelForm): description = forms.CharField(widget=forms.Textarea\ (attrs={'cols': 40, 'rows': 1})) points = forms.FloatField() - solution = forms.CharField(widget=forms.Textarea\ + test = forms.CharField(widget=forms.Textarea\ (attrs={'cols': 40, 'rows': 1}), required=False) options = forms.CharField(widget=forms.Textarea\ (attrs={'cols': 40, 'rows': 1}), required=False) @@ -216,7 +216,7 @@ class QuestionForm(forms.ModelForm): new_question.summary = summary new_question.description = description new_question.points = points - # new_question.test = test + new_question.test = test new_question.options = options new_question.language = language new_question.type = type -- cgit From 92150265c82f3d1f6e4eb382447ae8e448cd406f Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 13 May 2015 18:20:26 +0530 Subject: Fix import paths, formatting, views and minor errors - Submitted file path should be set after changing directory - Change timeout duration in java test case - Set shell=True in _compile_command - Fix errors in code as per tests --- testapp/exam/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testapp/exam/forms.py') diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index 74a9b5a..b56e545 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -1,5 +1,5 @@ from django import forms -from exam.models import Profile, Quiz, Question, TestCase +from testapp.exam.models import Profile, Quiz, Question, TestCase from django.contrib.auth import authenticate from django.contrib.auth.models import User @@ -206,6 +206,7 @@ class QuestionForm(forms.ModelForm): summary = self.cleaned_data.get("summary") description = self.cleaned_data.get("description") points = self.cleaned_data.get("points") + test = self.cleaned_data.get("test") options = self.cleaned_data.get("options") language = self.cleaned_data.get("language") type = self.cleaned_data.get("type") -- cgit