Commit 440be8fa by Asad Azam Committed by AsadAzam

fixed comment link in email content

parent 2707988e
......@@ -52,7 +52,7 @@ def send_email_for_comment(comment, created=False):
)
else:
course = publisher_obj
object_path = reverse('publisher:publisher_courses_edit', args=[publisher_obj.id])
object_path = reverse('publisher:publisher_course_detail', args=[publisher_obj.id])
# Translators: 'subject_desc' will be choice from ('New comment added', 'Comment updated')
# and 'title' will be the value of course title field.
......
......@@ -65,7 +65,7 @@ class CommentsEmailTests(SiteMixin, TestCase):
comment = self.create_comment(content_object=self.course)
subject = 'Comment added: {title}'.format(title=self.course.title)
self.assert_comment_email_sent(
self.course, comment, reverse('publisher:publisher_courses_edit', args=[self.course.id]),
self.course, comment, reverse('publisher:publisher_course_detail', args=[self.course.id]),
subject
)
......
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