Skip to content
Snippets Groups Projects
Commit 31f63564 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Update serializers

parent 9216d0b3
No related branches found
No related tags found
1 merge request!19Page display name
......@@ -64,6 +64,7 @@ class PageLightSerializer(serializers.ModelSerializer):
'page_type',
'nb',
'direction',
'display_name',
'images',
)
......@@ -187,7 +188,7 @@ class PageZoneCanvasManifestSerializer(serializers.BaseSerializer):
return {
"@id": page.build_absolute_url(self.context['request'], 'api:canvas-manifest'),
"@type": "sc:Canvas",
"label": page.folio,
"label": page.display_name,
"height": zone.box.height,
"width": zone.box.width,
"images": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment