Commits

Arun Karunagath  committed 1685489

fixed book mark's bug

  • Participants
  • Parent commits e25f94b

Comments (0)

Files changed (1)

File src/onlinetest/views.py

     }
     return render(request, 'exam.html', bundle)
 
-def book_mark(request):
+def book_mark(request, qid, add):
     bookmarks = request.session.get('bookmarks', [])
     qids = request.session['qids']
     if long(qid) in qids:
     logout(request)
 
     #redirect to regiser page
-    return HttpResponseRedirect("/")
+    return HttpResponseRedirect("/")