summaryrefslogtreecommitdiff
path: root/testapp/exam
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam')
-rw-r--r--testapp/exam/forms.py2
-rw-r--r--testapp/exam/views.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py
index e622b88..272a3d4 100644
--- a/testapp/exam/forms.py
+++ b/testapp/exam/forms.py
@@ -113,7 +113,7 @@ class QuizForm(forms.Form):
start_date = forms.DateField(initial=datetime.date.today)
duration = forms.IntegerField()
active = forms.BooleanField(required = False)
- description = forms.CharField(max_length=256, widget=forms.Textarea(attrs={'cols':20,'rows':2}))
+ description = forms.CharField(max_length=256, widget=forms.Textarea(attrs={'cols':20,'rows':1}))
def save(self):
start_date = self.cleaned_data["start_date"]
diff --git a/testapp/exam/views.py b/testapp/exam/views.py
index 2803538..ffb1b1e 100644
--- a/testapp/exam/views.py
+++ b/testapp/exam/views.py
@@ -246,7 +246,8 @@ def prof_manage(request):
user = request.user
if user.is_authenticated() and user.groups.filter(name='moderator').count() > 0:
- return render_to_response('manage.html',{})
+ context = {'user':user}
+ return render_to_response('manage.html',context)
return my_redirect('/exam/login/')
def user_login(request):