From 004985057c408b25c413e906a99602a24bb2eb5d Mon Sep 17 00:00:00 2001 From: richard-dds Date: Mon, 24 Sep 2018 11:42:30 -0400 Subject: [PATCH] auditable_workspace_id for Environment --- atst/models/environment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atst/models/environment.py b/atst/models/environment.py index a8edeae1..2d56f9da 100644 --- a/atst/models/environment.py +++ b/atst/models/environment.py @@ -22,3 +22,6 @@ class Environment(Base, mixins.TimestampsMixin, mixins.AuditableMixin): @property def num_users(self): return len(self.users) + + def auditable_workspace_id(self): + return self.project.workspace_id