去除点的方法:
<td> {% for roles_son in roles.permissions.all %} {% if forloop.last %} # 利用模板语言中的循环机制来判断 {{ roles_son }} {% else %} {{ roles_son }} , {% endif %} {% endfor %} </td>
关于Djiango中 前端多对多字段点(,)的显示问题
原文:https://www.cnblogs.com/Rivend/p/11711274.html