diff --git a/hatrac/model/directory/pgsql.py b/hatrac/model/directory/pgsql.py index 06f219a..7210e23 100644 --- a/hatrac/model/directory/pgsql.py +++ b/hatrac/model/directory/pgsql.py @@ -1186,7 +1186,7 @@ def get_current_version(self, object, conn=None, cur=None): assert object.id is not None, object results = self._version_list(conn, cur, object.id, limit=1) if results: - return HatracObjectVersion(self, object, **results[0]) + return self.version_resolve(object, results[0]['version'], conn=conn, cur=cur) else: raise core.Conflict('Object %s currently has no content.' % object)