Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends 'base.html' %}
- {% block content %}
- <div class='row'>
- {% for question in questions %}
- {{ question }}<br/>
- <form method='POST' action=''>{% csrf_token %}
- <input type='hidden' vlaue='{{ question.id }}' name='question_id'/>
- {% for ans in question.answer_set.all %}
- <input type='radio' value='{{ ans }}' name='answer'>{{ ans }} <br/>
- {% endfor %}
- <input type='submit' value='Submit'>
- </form>
- {% endfor %}
- </div>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement