From 48e72573ff8e14074d5fb356a6f605853ca8b877 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 15 Aug 2017 10:53:35 +0200
Subject: [PATCH] Fix wrong property taken for method on new Author Reply

---
 comments/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/comments/views.py b/comments/views.py
index fb5199bd4..1948eba50 100644
--- a/comments/views.py
+++ b/comments/views.py
@@ -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)
-- 
GitLab