Changeset - 14e9a06c37a7
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-01-30 00:11:35
marcin@python-works.com
fix order of pull-requests in show all page
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/pull_request.py
Show inline comments
 
@@ -53,7 +53,10 @@ class PullRequestModel(BaseModel):
 

	
 
    def get_all(self, repo):
 
        repo = self._get_repo(repo)
 
        return PullRequest.query().filter(PullRequest.other_repo == repo).all()
 
        return PullRequest.query()\
 
                .filter(PullRequest.other_repo == repo)\
 
                .order_by(PullRequest.created_on)\
 
                .all()
 

	
 
    def create(self, created_by, org_repo, org_ref, other_repo, other_ref,
 
               revisions, reviewers, title, description=None):
0 comments (0 inline, 0 general)