Skip to content

Commit

Permalink
refactor(admin): add agency exclude fields from TransitProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 31, 2024
1 parent 19d8dd2 commit 00697c0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions benefits/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ def get_readonly_fields(self, request, obj=None):
class TransitProcessorAdmin(admin.ModelAdmin): # pragma: no cover
def get_exclude(self, request, obj=None):
if not request.user.is_superuser:
return [
"client_id",
"client_secret_name",
"audience",
]
return []
else:
return super().get_exclude(request, obj)

Expand All @@ -121,6 +117,9 @@ def get_exclude(self, request, obj=None):
"private_key",
"public_key",
"jws_signing_alg",
"transit_processor_client_id",
"transit_processor_client_secret_name",
"transit_processor_audience",
]
else:
return super().get_exclude(request, obj)
Expand Down

0 comments on commit 00697c0

Please sign in to comment.