From 5ec456d5208df78ef87d0660e4bef430d553d65d Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 11 Mar 2016 12:36:49 +0530 Subject: Revert testcase formsets --- yaksh/forms.py | 4 --- yaksh/templates/yaksh/add_question.html | 3 --- yaksh/views.py | 47 ++++++++++++++------------------- 3 files changed, 20 insertions(+), 34 deletions(-) diff --git a/yaksh/forms.py b/yaksh/forms.py index c5bec4c..0eed8eb 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -180,10 +180,6 @@ class QuestionFilterForm(forms.Form): (choices=question_types)) -TestCaseFormSet = inlineformset_factory(Question, TestCase, fields='__all__', - can_order=False, can_delete=False, extra=1) - - class CourseForm(forms.ModelForm): class Meta: model = Course diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index 61b146c..1b1d28d 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -40,9 +40,6 @@ {% endif %} -