Commit 7eb030a1 authored by Roshan Rabinarayan's avatar Roshan Rabinarayan

added all the quizes to professor page

parent 536ad3d2
......@@ -114,7 +114,7 @@ def student(request):
if role == "S":
return render(request,'student.html',{'quizId':quizId})
else:
quizzes=quiz.objects.all().filter().values('quizId','quizCode','quizInstructor')
quizzes=quiz.objects.all().filter(quizInstructor=request.user.id).values('quizId','quizCode','quizInstructor')
quizId=list()
for q in quizzes:
quizId.append((q['quizId'],q['quizCode']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment