{% extends '_list_base.html' %} {% load common_tags %} {% block content_left_head %} 添加用户 {# 删除所选 #} {% endblock %} {% block table_head %} 姓名 用户名 角色 用户组 资产数量 有效 {% endblock %} {% block table_body %} {% for user in user_list %} {{ user.name }} {{ user.username }} {{ user.role.name }} {{ user.groups.all|join_queryset_attr:"name" }} {{ user.name }} {% if user.is_expired %} {% else %} {% endif %} 编辑 删除 {% endfor %} {% endblock %} {% block content_bottom_left %} {% endblock %}