Skip to content
Snippets Groups Projects
Commit 91a75b97 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Add Element rotation and mirroring properties on ListTranscriptions

parent 8fadb1c7
No related branches found
No related tags found
1 merge request!1516Add Element rotation and mirroring properties on ListTranscriptions
......@@ -64,7 +64,11 @@ class ElementZoneSerializer(ElementLightSerializer):
class Meta(ElementLightSerializer.Meta):
model = Element
fields = ElementLightSerializer.Meta.fields + ('zone', )
fields = ElementLightSerializer.Meta.fields + (
'zone',
'rotation_angle',
'mirrored',
)
class ElementTypeLightSerializer(serializers.ModelSerializer):
......
......@@ -138,6 +138,8 @@ class TestTranscriptions(FixtureAPITestCase):
'id': str(self.page.id),
'polygon': [[0, 0], [0, 1000], [1000, 1000], [1000, 0], [0, 0]],
},
'rotation_angle': 0,
'mirrored': False
},
}
])
......
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