summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorankitjavalkar2016-04-01 11:18:04 +0530
committerankitjavalkar2016-05-05 19:16:26 +0530
commitf120f5763904589d3c18b6cc0f4e227bcaef9a0a (patch)
treef129657e1b767c9f5cc6a61d583d5aec46e8334b /yaksh/forms.py
parent0b5a48f0ba4c4510c0026101ab84e19099691635 (diff)
downloadonline_test-f120f5763904589d3c18b6cc0f4e227bcaef9a0a.tar.gz
online_test-f120f5763904589d3c18b6cc0f4e227bcaef9a0a.tar.bz2
online_test-f120f5763904589d3c18b6cc0f4e227bcaef9a0a.zip
Add testcase addition templates, views and forms
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 94498a1..1375d10 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -214,3 +214,14 @@ class ProfileForm(forms.ModelForm):
class UploadFileForm(forms.Form):
file = forms.FileField()
+
+class StandardTestCaseForm(forms.ModelForm):
+ class Meta:
+ model = StandardTestCase
+ fields = ['test_case']
+
+
+class StdoutBasedTestCaseForm(forms.ModelForm):
+ class Meta:
+ model = StdoutBasedTestCase
+ fields = ['output']