From 0c8d303bdd077d985e55fdfabbf81c8bb80378fa Mon Sep 17 00:00:00 2001 From: richard-dds Date: Mon, 24 Sep 2018 11:41:53 -0400 Subject: [PATCH] Faster (no join) default impl. of auditable_workspace_id --- atst/models/mixins/auditable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atst/models/mixins/auditable.py b/atst/models/mixins/auditable.py index 89645186..e0fb3710 100644 --- a/atst/models/mixins/auditable.py +++ b/atst/models/mixins/auditable.py @@ -64,7 +64,7 @@ class AuditableMixin(object): return camel_to_snake(type(self).__name__) def auditable_workspace_id(self): - return getattr_path(self, "workspace.id") + return getattr_path(self, "workspace_id") def auditable_displayname(self): return getattr_path(self, "displayname")