# HG changeset patch # User Martin Bornhold # Date 2016-09-22 11:27:40 # Node ID 82b44b5527cd74b37246482fa8766bc0adde5f88 # Parent 1e04fb3bb1b541f863559f16dade70fb7744db5b pr: Use unicode object when generating the pull request title diff --git a/rhodecode/model/pull_request.py b/rhodecode/model/pull_request.py --- a/rhodecode/model/pull_request.py +++ b/rhodecode/model/pull_request.py @@ -1018,7 +1018,7 @@ class PullRequestModel(BaseModel): } def generate_pullrequest_title(self, source, source_ref, target): - return '{source}#{at_ref} to {target}'.format( + return u'{source}#{at_ref} to {target}'.format( source=source, at_ref=source_ref, target=target,