Show More
@@ -62,7 +62,8 class BaseRepoController(BaseController) | |||||
62 | super(BaseRepoController, self).__before__() |
|
62 | super(BaseRepoController, self).__before__() | |
63 | if c.repo_name: |
|
63 | if c.repo_name: | |
64 |
|
64 | |||
65 |
c.rhodecode_repo, dbrepo = self.scm_model.get(c.repo_name, |
|
65 | c.rhodecode_repo, dbrepo = self.scm_model.get(c.repo_name, | |
|
66 | retval='repo') | |||
66 |
|
67 | |||
67 | if c.rhodecode_repo is not None: |
|
68 | if c.rhodecode_repo is not None: | |
68 | c.repository_followers = \ |
|
69 | c.repository_followers = \ |
@@ -74,6 +74,7 class RepoModel(BaseModel): | |||||
74 | repo = self.sa.query(Repository)\ |
|
74 | repo = self.sa.query(Repository)\ | |
75 | .options(joinedload(Repository.fork))\ |
|
75 | .options(joinedload(Repository.fork))\ | |
76 | .options(joinedload(Repository.user))\ |
|
76 | .options(joinedload(Repository.user))\ | |
|
77 | .options(joinedload(Repository.group))\ | |||
77 | .filter(Repository.repo_name == repo_name)\ |
|
78 | .filter(Repository.repo_name == repo_name)\ | |
78 |
|
79 | |||
79 | if cache: |
|
80 | if cache: | |
@@ -86,7 +87,7 class RepoModel(BaseModel): | |||||
86 |
|
87 | |||
87 | #make transient for sake of errors |
|
88 | #make transient for sake of errors | |
88 | make_transient(ret) |
|
89 | make_transient(ret) | |
89 | for k in ['fork', 'user']: |
|
90 | for k in ['fork', 'user', 'group']: | |
90 | attr = getattr(ret, k, False) |
|
91 | attr = getattr(ret, k, False) | |
91 | if attr: |
|
92 | if attr: | |
92 | make_transient(attr) |
|
93 | make_transient(attr) |
General Comments 0
You need to be logged in to leave comments.
Login now