From 6c0a4abd523f58470924aaa420cddce994b213b2 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 18 Jun 2020 15:23:43 +0100 Subject: [PATCH] Serialise UUIDs to string So that we can serialise them to JSON to store in Redis. --- app/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/schemas.py b/app/schemas.py index dded0b09e..eb7b123b2 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -205,7 +205,7 @@ class ProviderDetailsHistorySchema(BaseSchema): strict = True -class ServiceSchema(BaseSchema): +class ServiceSchema(BaseSchema, UUIDsAsStringsMixin): created_by = field_for(models.Service, 'created_by', required=True) organisation_type = field_for(models.Service, 'organisation_type')