Commits

Marcin Kuzminski committed e0f670b

Small cache fixes.

Comments (0)

Files changed (2)

rhodecode/lib/base.py

         super(BaseRepoController, self).__before__()
         if c.repo_name:
 
-            c.rhodecode_repo, dbrepo = self.scm_model.get(c.repo_name, retval='repo')
+            c.rhodecode_repo, dbrepo = self.scm_model.get(c.repo_name,
+                                                          retval='repo')
 
             if c.rhodecode_repo is not None:
                 c.repository_followers = \

rhodecode/model/repo.py

         repo = self.sa.query(Repository)\
             .options(joinedload(Repository.fork))\
             .options(joinedload(Repository.user))\
+            .options(joinedload(Repository.group))\
             .filter(Repository.repo_name == repo_name)\
 
         if cache:
 
         #make transient for sake of errors
         make_transient(ret)
-        for k in ['fork', 'user']:
+        for k in ['fork', 'user', 'group']:
             attr = getattr(ret, k, False)
             if attr:
                 make_transient(attr)