Skip to content

Commit

Permalink
Fix for issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Jul 14, 2017
1 parent ab17d24 commit cf05a78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/review/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,10 @@ def do_review(request, assignment_id):
task_object=assignment.article,
**kwargs)

return redirect("{0}?access_code={1}".format(reverse('thanks_review',
kwargs={'assignment_id': assignment.pk}), access_code))
return redirect("{0}{1}{2}".format(
reverse('thanks_review', kwargs={'assignment_id': assignment.pk}),
'?access_code=' if access_code else '',
access_code if access_code else ''))

template = 'review/review_form.html'
context = {
Expand Down

0 comments on commit cf05a78

Please sign in to comment.