diff --git a/data/model/tag.py b/data/model/tag.py index 03fa30ec3..6139b5fff 100644 --- a/data/model/tag.py +++ b/data/model/tag.py @@ -344,9 +344,10 @@ def load_manifest_by_digest(namespace, repo_name, digest): def _load_repo_manifests(namespace, repo_name): - return _tag_alive(TagManifest - .select(TagManifest, RepositoryTag, Repository) - .join(RepositoryTag) - .join(Repository) - .join(Namespace, on=(Namespace.id == Repository.namespace_user)) - .where(Repository.name == repo_name, Namespace.username == namespace)) + return _tag_alive(TagManifest + .select(TagManifest, RepositoryTag) + .join(RepositoryTag) + .join(Image) + .join(Repository) + .join(Namespace, on=(Namespace.id == Repository.namespace_user)) + .where(Repository.name == repo_name, Namespace.username == namespace))