Add open_access field to Question model and update question detail template
This commit is contained in:
+4
-4
@@ -98,10 +98,10 @@ class AuthorOrCheckerRequiredMixin(object):
|
||||
# return render(request, "sbas/question_view.html", {"questions": questions})
|
||||
|
||||
|
||||
@login_required
|
||||
def question_detail(request, pk):
|
||||
question = get_object_or_404(Question, pk=pk)
|
||||
return render(request, "sbas/question_detail.html", {"question": question})
|
||||
#@login_required
|
||||
#def question_detail(request, pk):
|
||||
# question = get_object_or_404(Question, pk=pk)
|
||||
# return render(request, "sbas/question_detail.html", {"question": question})
|
||||
|
||||
|
||||
def active_exams(request):
|
||||
|
||||
Reference in New Issue
Block a user