Filter the roles relationship on applications to remove deleted roles

This commit is contained in:
leigh-mil
2019-05-23 11:07:54 -04:00
parent 86e315e56f
commit 8980b04f7e
4 changed files with 8 additions and 33 deletions

View File

@@ -54,7 +54,7 @@
<a
href="{{ url_for('applications.team', application_id=application.id) }}"
class='icon-link'>
<span>{{ "portfolios.applications.team_text" | translate }} ({{ application.num_users }})</span>
<span>{{ "portfolios.applications.team_text" | translate }} ({{ application.users | length }})</span>
</a>
<div class='separator'></div>
{% endif %}