Removed stray code from other ticket

This commit is contained in:
CocoByte 2024-07-17 13:34:50 -06:00
parent 2c0df91aaf
commit adf1c74190
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -2649,8 +2649,6 @@ class VerifiedByStaffAdmin(ListHeaderAdmin):
class PortfolioAdmin(ListHeaderAdmin): class PortfolioAdmin(ListHeaderAdmin):
change_form_template = "django/admin/portfolio_change_form.html"
list_display = ("organization_name", "federal_agency", "creator") list_display = ("organization_name", "federal_agency", "creator")
search_fields = ["organization_name"] search_fields = ["organization_name"]
search_help_text = "Search by organization name." search_help_text = "Search by organization name."
@ -2661,19 +2659,6 @@ class PortfolioAdmin(ListHeaderAdmin):
"federal_agency", "federal_agency",
] ]
def change_view(self, request, object_id, form_url="", extra_context=None):
"""Add related suborganizations and domain groups"""
obj = self.get_object(request, object_id)
# ---- Domain Groups
domain_groups = DomainGroup.objects.filter(portfolio=obj)
# ---- Suborganizations
suborganizations = Suborganization.objects.filter(portfolio=obj)
extra_context = {"domain_groups": domain_groups, "suborganizations": suborganizations}
return super().change_view(request, object_id, form_url, extra_context)
def save_model(self, request, obj, form, change): def save_model(self, request, obj, form, change):
if obj.creator is not None: if obj.creator is not None: