comparison rhodecode/model/changeset_status.py @ 4097:7baea802f739

fixes issue #884 Pull Request fails when setting the lang=ja
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 28 Jul 2013 19:14:57 +0200
parents 3625fd19b201
children ffd45b185016
comparison
equal deleted inserted replaced
4096:9496c047ea4d 4097:7baea802f739
130 130
131 q = ChangesetStatus.query() 131 q = ChangesetStatus.query()
132 if not comment: 132 if not comment:
133 from rhodecode.model.comment import ChangesetCommentsModel 133 from rhodecode.model.comment import ChangesetCommentsModel
134 comment = ChangesetCommentsModel().create( 134 comment = ChangesetCommentsModel().create(
135 text='Auto status change to %s' % (ChangesetStatus.get_status_lbl(status)), 135 text=u'Auto status change to %s' % (ChangesetStatus.get_status_lbl(status)),
136 repo=repo, 136 repo=repo,
137 user=user, 137 user=user,
138 pull_request=pull_request, 138 pull_request=pull_request,
139 send_email=False 139 send_email=False
140 ) 140 )