Skip to content

Commit

Permalink
two org fixes (#17669)
Browse files Browse the repository at this point in the history
- Display correct username in orgs admin
- Truncate Company org description when sending to stripe
  • Loading branch information
ewdurbin authored Feb 27, 2025
1 parent 9371d24 commit c0c4cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion warehouse/admin/templates/admin/organizations/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h3 class="card-title">Members</h3>
<tbody>
{% for role in organization.roles %}
<tr>
<td><a href="{{ request.route_path('admin.user.detail', username=role.user.username) }}">{{ user.username }}</a></td>
<td><a href="{{ request.route_path('admin.user.detail', username=role.user.username) }}">{{ role.user.username }}</a></td>
<td>{{ role.role_name.value }}</td>
</tr>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion warehouse/subscriptions/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def create_customer(self, name, description):
"""
return self.api.Customer.create(
name=name,
description=description,
description=description[:300],
metadata={"billing_service": "pypi", "domain": self.domain},
)

Expand Down

0 comments on commit c0c4cae

Please sign in to comment.