Serialise UUIDs to string

So that we can serialise them to JSON to store in Redis.
This commit is contained in:
Chris Hill-Scott
2020-06-18 15:23:43 +01:00
parent 6a9818b5fd
commit 6c0a4abd52

View File

@@ -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')