Skip to content

Commit c4175f5

Browse files
committed
Fixing url to visit the comment in email notification.
1 parent 28c4c04 commit c4175f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

work/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def comment_notification(sender, comment, **kwargs):
1717
if users:
1818
from django.contrib.sites.models import Site
1919
site_name = Site.objects.get_current().name
20-
membership_url= "https://" + Site.objects.get_current().domain + "/accounting/membership-request/" + str(comment.content_object.id) + "/"
20+
membership_url= "https://" + Site.objects.get_current().domain +\
21+
"/work/membership-discussion/" + str(comment.content_object.id) + "/"
2122
notification.send(
2223
users,
2324
"comment_membership_request",

work/templates/notification/comment_membership_request/full.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
{{ comment }}
44

5-
The new comment is at {% endblocktrans %}{{ membership_url }}
6-
5+
You can answer the comment at{% endblocktrans %} {{ membership_url }}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% load i18n %}{% trans "New comment from {{ name }} in membership request" %}
1+
{% load i18n %}{% trans "New comment in membership request" %}

0 commit comments

Comments
 (0)