user_image
By  飞塔大王    On   2019年11月4日 23:48

刘老师您好,我的html模板中,以下这段代码貌似没有执行,不知道 哪里出错了,复制过去的也不行。 {% for choice in question.choice_set.all %} <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}"> <label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br> {% endfor %}