SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 48e72573 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix wrong property taken for method on new Author Reply

parent 83ba05e8
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ def reply_to_report(request, report_id):
messages.success(request, '<h3>Thank you for contributing a Reply</h3>'
'It will soon be vetted by an Editor.')
return redirect(newcomment.submission.get_absolute_url())
return redirect(newcomment.content_object.get_absolute_url())
context = {'report': report, 'is_author': is_author, 'form': form}
return render(request, 'comments/reply_to_report.html', context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment