From d3d114f01adff6176460ba073d7dd44f5217ee00 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Tue, 3 Jan 2017 15:10:05 +0530 Subject: modified editing instructions. Instructions are now initialized in forms and not fetched from a file --- yaksh/forms.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'yaksh/forms.py') diff --git a/yaksh/forms.py b/yaksh/forms.py index 6fbaf5d..1d18d29 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -9,6 +9,7 @@ from taggit.managers import TaggableManager from taggit.forms import TagField from django.forms.models import inlineformset_factory from django.db.models import Q +from textwrap import dedent try: from string import letters except ImportError: @@ -165,6 +166,58 @@ class QuizForm(forms.ModelForm): self.fields['prerequisite'].required = False self.fields['course'] = forms.ModelChoiceField( queryset=Course.objects.filter(id=course_id), empty_label=None) + self.fields["instructions"].initial = dedent("""\ +
+ This examination system has been + developed with the intention of + making you learn programming and + be assessed in an interactive and + fun manner. + You will be presented with a + series of programming questions + and problems that you will answer + online and get immediate + feedback for. +
++ Here are some important + instructions and rules that you + should understand carefully.
++ We hope you enjoy taking this + exam !!! +
+ """) class Meta: model = Quiz -- cgit