Skip to content

Commit

Permalink
Merge pull request #33721 from dimagi/jls/hr-name-in-invite
Browse files Browse the repository at this point in the history
Replaced domain name with human-readable name in invitation email
  • Loading branch information
orangejenny authored Nov 7, 2023
2 parents 97cc1ab + 46f6e2e commit c8460a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% blocktrans %}Hey there,{% endblocktrans %}

{% blocktrans %}
{{ inviter }} has invited you to join the {{ domain }} project space at CommCare HQ.
{{ inviter }} has invited you to join the {{ domain }} project at CommCare HQ.
This invitation expires in {{ days }} day(s).
{% endblocktrans %}

Expand Down
3 changes: 2 additions & 1 deletion corehq/apps/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2682,8 +2682,9 @@ def email_marked_as_bounced(self):
def send_activation_email(self, remaining_days=30):
inviter = CouchUser.get_by_user_id(self.invited_by)
url = absolute_reverse("domain_accept_invitation", args=[self.domain, self.uuid])
domain_obj = Domain.get_by_name(self.domain)
params = {
"domain": self.domain,
"domain": domain_obj.display_name(),
"url": url,
"days": remaining_days,
"inviter": inviter.formatted_name,
Expand Down

0 comments on commit c8460a7

Please sign in to comment.