Skip to content

Commit

Permalink
Fix URLs in user deletion email (#1729)
Browse files Browse the repository at this point in the history
* Fix URLs in user deletion email

* Fix domain
  • Loading branch information
Didayolo authored Jan 16, 2025
1 parent 8dc57f2 commit 30503a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/apps/profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def send_user_deletion_notice_to_admin(user):
'data_groups': data_groups,
'tasks': tasks,
'queues': queues,
'posts': posts
'posts': posts,
'domain': settings.DOMAIN_NAME
}
codalab_send_mail(
context_data=context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h4>Organizations the user is part of:</h4>
<ul>
{% for organization in organizations.all %}
<li>
<a class="item" href="{% url 'profiles:organization_profile' pk=organization.id %}">
<a class="item" href="{{ domain }}{% url 'profiles:organization_profile' pk=organization.id %}">
{{ organization }}
</a>
</li>
Expand All @@ -47,7 +47,7 @@ <h4>Competitions the user is the owner:</h4>
<ul>
{% for competition in competitions_organizer.all %}
<li>
<a class="item" href="{% url 'competitions:detail' pk=competition.pk %}">
<a class="item" href="{{ domain }}{% url 'competitions:detail' pk=competition.pk %}">
{{ competition }}
</a>
</li>
Expand All @@ -58,7 +58,7 @@ <h4>Competitions the user participated in:</h4>
<ul>
{% for competition in competitions_participation.all %}
<li>
<a class="item" href="{% url 'competitions:detail' pk=competition.pk %}">
<a class="item" href="{{ domain }}{% url 'competitions:detail' pk=competition.pk %}">
{{ competition }}
</a>
</li>
Expand Down Expand Up @@ -94,7 +94,7 @@ <h4>Tasks created by the user</h4>
<ul>
{% for task in tasks.all %}
<li>
<a class="item" href="{% url 'tasks:detail' pk=task.pk %}">
<a class="item" href="{{ domain }}{% url 'tasks:detail' pk=task.pk %}">
{{ task }}
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<ul>
{% for organization in organizations.all %}
<li>
<a class="item" href="{% url 'profiles:organization_profile' pk=organization.id %}">
<a class="item" href="{{ domain }}{% url 'profiles:organization_profile' pk=organization.id %}">
{{ organization }}
</a>
</li>
Expand All @@ -47,7 +47,7 @@
<ul>
{% for competition in competitions_organizer.all %}
<li>
<a class="item" href="{% url 'competitions:detail' pk=competition.pk %}">
<a class="item" href="{{ domain }}{% url 'competitions:detail' pk=competition.pk %}">
{{ competition }}
</a>
</li>
Expand All @@ -58,7 +58,7 @@
<ul>
{% for competition in competitions_participation.all %}
<li>
<a class="item" href="{% url 'competitions:detail' pk=competition.pk %}">
<a class="item" href="{{ domain }}{% url 'competitions:detail' pk=competition.pk %}">
{{ competition }}
</a>
</li>
Expand Down Expand Up @@ -94,7 +94,7 @@
<ul>
{% for task in tasks.all %}
<li>
<a class="item" href="{% url 'tasks:detail' pk=task.pk %}">
<a class="item" href="{{ domain }}{% url 'tasks:detail' pk=task.pk %}">
{{ task }}
</a>
</li>
Expand Down

0 comments on commit 30503a3

Please sign in to comment.