fix 500 error for Portfolio Admin

This commit is contained in:
CocoByte 2024-12-16 11:13:37 -07:00
parent eb72c3f66d
commit 2ba9fd8be6
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -3607,6 +3607,11 @@ class PortfolioAdmin(ListHeaderAdmin):
"senior_official",
]
# Even though this is empty, I will leave it as a stub for easy changes in the future
# rather than strip it out of our logic.
analyst_readonly_fields = [
]
def get_admin_users(self, obj):
# Filter UserPortfolioPermission objects related to the portfolio
admin_permissions = self.get_user_portfolio_permission_admins(obj)