Skip to content
Snippets Groups Projects
Commit 4c8e43a8 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'list-transcriptions-rotation' into 'master'

Add Element rotation and mirroring properties on ListTranscriptions

Closes #883

See merge request !1516
parents 8fadb1c7 91a75b97
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