shadow: Remove URL quoting of shadow repository pull URL.
This commit is contained in:
parent
ad14211248
commit
0e6b983ce1
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ from collections import namedtuple
|
|||
import json
|
||||
import logging
|
||||
import datetime
|
||||
import urllib
|
||||
|
||||
from pylons.i18n.translation import _
|
||||
from pylons.i18n.translation import lazy_ugettext
|
||||
|
|
@ -785,7 +786,8 @@ class PullRequestModel(BaseModel):
|
|||
if pull_request.is_closed():
|
||||
return None
|
||||
else:
|
||||
return u'{url}/repository'.format(url=self.get_url(pull_request))
|
||||
pr_url = urllib.unquote(self.get_url(pull_request))
|
||||
return safe_unicode('{pr_url}/repository'.format(pr_url=pr_url))
|
||||
|
||||
def notify_reviewers(self, pull_request, reviewers_ids):
|
||||
# notification to reviewers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue