Skip to content

Commit

Permalink
organisations: fix export serialization
Browse files Browse the repository at this point in the history
Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Aug 31, 2021
1 parent 33bce7e commit 0757127
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sonar/modules/organisations/serializers/schemas/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ class ExportSchemaV1(Schema):
isShared = fields.Boolean(dump_only=True)
isDedicated = fields.Boolean(dump_only=True)
files = fields.Method('get_files', dump_only=True)
allowedIps = fields.String(dump_only=True)
platformName = fields.String(dump_only=True)
documentsCustomField1 = fields.Dict(dump_only=True)
documentsCustomField2 = fields.Dict(dump_only=True)
documentsCustomField3 = fields.Dict(dump_only=True)

def get_files(self, obj):
"""Get files."""
Expand Down

0 comments on commit 0757127

Please sign in to comment.