Skip to content

Commit

Permalink
Merge pull request #2447 from cisagov/rh/2388-show-details
Browse files Browse the repository at this point in the history
ISSUE #2388: Fix show detail section
  • Loading branch information
therealslimhsiehdy authored Jul 17, 2024
2 parents dd59c96 + 7364db4 commit 87b0b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registrar/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ def get_fieldsets(self, request, obj=None):
for name, data in fieldsets:
fields = data.get("fields", [])
fields = tuple(field for field in fields if field not in DomainInformationAdmin.superuser_only_fields)
modified_fieldsets.append((name, {"fields": fields}))
modified_fieldsets.append((name, {**data, "fields": fields}))
return modified_fieldsets
return fieldsets

Expand Down Expand Up @@ -1656,7 +1656,7 @@ def get_fieldsets(self, request, obj=None):
for name, data in fieldsets:
fields = data.get("fields", [])
fields = tuple(field for field in fields if field not in self.superuser_only_fields)
modified_fieldsets.append((name, {"fields": fields}))
modified_fieldsets.append((name, {**data, "fields": fields}))
return modified_fieldsets
return fieldsets

Expand Down

0 comments on commit 87b0b6c

Please sign in to comment.