From dc35b622cbb6257c0ee07622807f5faaec5bd28a Mon Sep 17 00:00:00 2001 From: Jumana B Date: Tue, 27 Aug 2024 13:32:19 -0400 Subject: [PATCH] add sensitive service to the schema (#2258) --- app/schemas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/schemas.py b/app/schemas.py index 023a9415a7..f588dd549e 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -267,6 +267,7 @@ class ServiceSchema(BaseSchema, UUIDsAsStringsMixin): letter_contact_block = fields.Method(serialize="get_letter_contact") go_live_at = field_for(models.Service, "go_live_at", format="%Y-%m-%d %H:%M:%S.%f") organisation_notes = field_for(models.Service, "organisation_notes") + sensitive_service = field_for(models.Service, "sensitive_service") def get_letter_logo_filename(self, service): return service.letter_branding and service.letter_branding.filename @@ -776,6 +777,7 @@ class Meta: email_from = fields.String() created_by_id = fields.UUID() version = fields.Integer() + sensitive_service = fields.Boolean() class ApiKeyHistorySchema(Schema):