def all_related_tors(self):
     return dict(related_to=[i.to_object for i in self.context.related_tor],
                 related_from=back_references(self.context, 'related_tor'))
Example #2
0
 def related_tors(self):
     data = back_references(self.context, 'related_consultant')
     return sorted(data, key=lambda data: data.startdate, reverse=True)