Changeset - 477fe54b8af8
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-03-01 00:15:14
marcin@python-works.com
fixed sorting of repos in group
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -804,13 +804,15 @@ class RepoGroup(Base, BaseModel):
 
    @property
 
    def full_path_splitted(self):
 
        return self.group_name.split(RepoGroup.url_sep())
 

	
 
    @property
 
    def repositories(self):
 
        return Repository.query().filter(Repository.group == self)
 
        return Repository.query()\
 
                .filter(Repository.group == self)\
 
                .order_by(Repository.repo_name)
 

	
 
    @property
 
    def repositories_recursive_count(self):
 
        cnt = self.repositories.count()
 

	
 
        def children_count(group):
0 comments (0 inline, 0 general)