Faster (no join) default impl. of auditable_workspace_id

This commit is contained in:
richard-dds 2018-09-24 11:41:53 -04:00
parent 85d866956b
commit 0c8d303bdd

View File

@ -64,7 +64,7 @@ class AuditableMixin(object):
return camel_to_snake(type(self).__name__) return camel_to_snake(type(self).__name__)
def auditable_workspace_id(self): def auditable_workspace_id(self):
return getattr_path(self, "workspace.id") return getattr_path(self, "workspace_id")
def auditable_displayname(self): def auditable_displayname(self):
return getattr_path(self, "displayname") return getattr_path(self, "displayname")