From 6c04ea3f3345ac665ae49bcedbca2ddc612064b4 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Sat, 3 Feb 2018 10:14:12 +0100
Subject: [PATCH] Fix email url incomplete

---
 theses/forms.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/theses/forms.py b/theses/forms.py
index da91cf710..e41bead8c 100644
--- a/theses/forms.py
+++ b/theses/forms.py
@@ -1,7 +1,6 @@
 from django import forms
 from django.core.mail import EmailMessage
 from django.template.loader import render_to_string
-from django.urls import reverse
 
 from scipost.models import Contributor
 
@@ -66,7 +65,7 @@ class VetThesisLinkForm(BaseRequestThesisLinkForm):
         mail_params = {
             'vocative_title': thesislink.requested_by.get_title_display(),
             'thesislink': thesislink,
-            'full_url': thesislink.get_absolute_url()
+            'full_url': 'https//www.scipost.org{url}'.format(url=thesislink.get_absolute_url())
         }
         action = int(self.cleaned_data['action_option'])
 
-- 
GitLab