From 6703406b7e19be35eb345e3cacdedda15bd74801 Mon Sep 17 00:00:00 2001 From: Hubert Jankowski Date: Sun, 16 Jan 2022 23:54:52 +0100 Subject: [PATCH] WIP --- templates/generic_test.html | 7 ++++++- trials/views.py | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/generic_test.html b/templates/generic_test.html index 403ccd7..b8e9ddc 100644 --- a/templates/generic_test.html +++ b/templates/generic_test.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load rest_framework %} {% block title %}{{ test.name }}{% endblock %} @@ -32,8 +33,8 @@
{{ question.description }}
-
+
{% for answer in question.answers.all %}
+ +{# #} + + {% endblock %} diff --git a/trials/views.py b/trials/views.py index 842d6a0..9535f98 100644 --- a/trials/views.py +++ b/trials/views.py @@ -29,6 +29,11 @@ class TestTemplateView(TemplateView): return context def post(self, request, *args, **kwargs): + import pdb;pdb.set_trace() + + + + question_id = 1 answers = [] while True: