show can_grant in list

This commit is contained in:
Laura Klünder 2017-12-08 22:04:26 +01:00
parent de73a2be8d
commit e5f33079b7

View file

@ -29,11 +29,13 @@
<tr>
<th>{% trans 'Access Restriction' %}</th>
<th>{% trans 'expires' %}</th>
<th>{% trans 'can grant' %}</th>
</tr>
{% for access_permission in user.accesspermissions.all %}
<tr>
<td>{{ access_permission.access_restriction.title }}</td>
<td>{{ access_permission.expire_date }}</td>
<td>{% if access_permission.can_grant %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}</td>
</tr>
{% endfor %}
</table>