Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam committed Dec 6, 2023
1 parent 43839aa commit 93eb48a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions seahub/invitations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ def send_to(self, email=None, org_name=None):

context = self.to_dict()
context['site_name'] = get_site_name()
context['org_name'] = org_name

subject = _(f'You are invited to join team {org_name}.')
subject = _('You are invited to join %(site_name)s.') % {'site_name': get_site_name()}

if org_name:
subject = _(f'You are invited to join team {org_name}.')
context['org_name'] = org_name

return send_html_email_with_dj_template(email,
subject=subject,
Expand Down

0 comments on commit 93eb48a

Please sign in to comment.