Skip to content

Commit 49018f8

Browse files
authored
admin: fix bug when rendering organization applications for users with existing organizations (#17915)
1 parent 79754e7 commit 49018f8

File tree

1 file changed

+1
-1
lines changed
  • warehouse/admin/templates/admin/organization_applications

1 file changed

+1
-1
lines changed

warehouse/admin/templates/admin/organization_applications/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ <h3 class="card-title">Organization Request{% if information_requests %}{% if ou
451451
<h4 class="card-title">User Organizations</h4>
452452
</div>
453453
<div class="card-body">
454-
{% for organization_role in user.organization_roles|sort() %}
454+
{% for organization_role in user.organization_roles|sort(attribute='role_name.value', reverse=True) %}
455455
<div><a href="{{ request.route_path('admin.organization.detail', organization_id=organization_role.organization.id) }}">{{ organization_role.organization.name }}</a> - {{ organization_role.role_name.value }}</div>
456456
{% else %}
457457
<i>none!</i>

0 commit comments

Comments
 (0)