Commit abdb281c authored by Michal Čihař's avatar Michal Čihař

Simplify code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2f2d5a9e
......@@ -441,8 +441,7 @@ def handle_suggestions(translation, request, this_unit_url, next_unit_url):
# Perform operation
try:
sugid = int(sugid)
suggestion = Suggestion.objects.get(pk=sugid)
suggestion = Suggestion.objects.get(pk=int(sugid))
if 'accept' in request.POST or 'accept_edit' in request.POST:
suggestion.accept(translation, request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment