# HG changeset patch # User Mads Kiilerich # Date 1420502076 -3600 # Node ID 3752cf4972a77007a91ff53ccaf97d767609433f # Parent 3bf88f142f3d81499330f5dd6477800822ee46d5 status: explicitly use joinedload of authors instead of relying on lazy=join diff -r 3bf88f142f3d -r 3752cf4972a7 kallithea/model/changeset_status.py --- a/kallithea/model/changeset_status.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/model/changeset_status.py Tue Jan 06 00:54:36 2015 +0100 @@ -28,6 +28,7 @@ import logging from collections import defaultdict +from sqlalchemy.orm import joinedload from kallithea.model import BaseModel from kallithea.model.db import ChangesetStatus, PullRequest @@ -103,6 +104,7 @@ with_revisions=False): q = self._get_status_query(repo, revision, pull_request, with_revisions) + q = q.options(joinedload('author')) return q.all() def get_status(self, repo, revision=None, pull_request=None, as_str=True):