clean up tamplate and fix unit tests

This commit is contained in:
Rachid Mrad 2024-08-23 21:55:41 -04:00
parent e82326346c
commit d07872bfa1
No known key found for this signature in database
3 changed files with 12 additions and 6 deletions

View file

@ -2975,7 +2975,7 @@ class PortfolioAdmin(ListHeaderAdmin):
Will be used in the after_help_text block."""
members = [user for user in obj.user.all() if "Admin" not in user.portfolio_role_summary]
if not members:
return format_html("<p>No members found.</p>")
return ''
member_details = (
"<table><thead><tr><th>Name</th><th>Title</th><th>Email</th>"