diff options
author | ankitjavalkar | 2016-04-01 11:18:04 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-05 19:16:26 +0530 |
commit | f120f5763904589d3c18b6cc0f4e227bcaef9a0a (patch) | |
tree | f129657e1b767c9f5cc6a61d583d5aec46e8334b /yaksh/forms.py | |
parent | 0b5a48f0ba4c4510c0026101ab84e19099691635 (diff) | |
download | online_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.py | 11 |
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'] |