Skip to content

Commit

Permalink
fix: signup link added if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo committed Feb 18, 2021
1 parent 16452c8 commit b6f3153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seed/views/v3/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ def warn_bad_units(kind, unit_string):
org.new_user_email_content = new_user_email_content
if not org.new_user_email_content:
org.new_user_email_content = Organization._meta.get_field('new_user_email_content').get_default()
if '{{sign_up_link}}' not in org.new_user_email_content:
org.new_user_email_content += '\n\nSign up here: {{sign_up_link}}'

# update new user email signature option
new_user_email_signature = posted_org.get('new_user_email_signature')
Expand Down

0 comments on commit b6f3153

Please sign in to comment.