@
lrqrun <h1>{{ account.account_text }}</h1>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>
{% endif %}
<form action="{% url 'manager:focus'
account.id %}" method="post">
{% csrf_token %}
{# 所有针对内部 URL 的 POST 表单都应该使用{% csrf_token %}模板标签#}
<ul>
<input name="focus" value="{{
account.id }}" />
{% for detailInfo in account.person_set.all %}
<li>{{ detailInfo.address_text }}</li>
<li>{{ detailInfo.email_text }}</li>
<li>{{ detailInfo.tel_number }}</li>
<li>{{ detailInfo.name_text }}</li>
<li>{{ detailInfo.focus_number }}</li>
<li>{{ detailInfo.visit_number }}</li>
{% endfor %}
</ul>
<input type="submit" value="关注他" />
</form>