add order to snapshot events

This commit is contained in:
nad 2019-05-02 18:04:14 +02:00
parent 7bb514d23c
commit 252f995ac7

View file

@ -100,7 +100,8 @@ class Event(Thing):
backref=backref('events',
lazy=True,
cascade=CASCADE_OWN,
collection_class=set),
order_by=lambda: Event.created,
collection_class=OrderedSet),
primaryjoin='Event.snapshot_id == Snapshot.id')
author_id = Column(UUID(as_uuid=True),