Mercurial > kallithea
diff rhodecode/model/pull_request.py @ 2746:49a4864b11c1 beta
Authors of pull-requests can now delete them
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Aug 2012 01:04:43 +0200 |
parents | 2b6939a77052 |
children | 493646d3146f |
line wrap: on
line diff
--- a/rhodecode/model/pull_request.py Sun Aug 26 00:26:59 2012 +0200 +++ b/rhodecode/model/pull_request.py Sun Aug 26 01:04:43 2012 +0200 @@ -125,6 +125,10 @@ if reviewer: self.sa.delete(reviewer) + def delete(self, pull_request): + pull_request = self.__get_pull_request(pull_request) + Session().delete(pull_request) + def close_pull_request(self, pull_request): pull_request = self.__get_pull_request(pull_request) pull_request.status = PullRequest.STATUS_CLOSED