擅长:python、mysql、java
<p>您需要在这里迭代,因为它是查询集</p>
<p>你知道吗三重列表.html你知道吗</p>
<pre><code> Coplanners:
{% for user in trip.add_coplanner.all %}
{{user.name}}
#{{user.username}} do this if your User model don't have name field
#If you want to separate the users with comma
{% if not forloop.last %} , {% endif %}
{% endfor %}<br>
</code></pre>