From e3956180b4fee9103d29774a670850828f78105b Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 14 Mar 2019 20:08:57 -0400 Subject: [PATCH] Add property to TO that returns a list of the officers --- atst/models/task_order.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/atst/models/task_order.py b/atst/models/task_order.py index 96bf6ebf..64c29e7a 100644 --- a/atst/models/task_order.py +++ b/atst/models/task_order.py @@ -221,6 +221,14 @@ class TaskOrder(Base, mixins.TimestampsMixin): """ return self.so_invite and not self.security_officer + @property + def officers(self): + return [ + self.contracting_officer, + self.contracting_officer_representative, + self.security_officer, + ] + _OFFICER_PREFIXES = { "contracting_officer": "ko", "contracting_officer_representative": "cor",