summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-10 14:08:16 +0200
committerDan McGee <dan@archlinux.org>2011-09-10 14:08:16 +0200
commit2cc3385aad120b9e9e0d3271b417c6764751c2a6 (patch)
tree99e1d8bd1e6d3973641d1dcd72c21c9f4eb1a317
parent293e42fc55ca0ee8f67d5bdcb3d32fd0ec93786e (diff)
downloadarchweb-2cc3385aad120b9e9e0d3271b417c6764751c2a6.tar.gz
archweb-2cc3385aad120b9e9e0d3271b417c6764751c2a6.tar.xz
Use HTTPS by default in email URLs
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 1efca78..b5cd863 100644
--- a/main/models.py
+++ b/main/models.py
@@ -196,7 +196,7 @@ class Package(models.Model):
return '/packages/%s/%s/%s/' % (self.repo.name.lower(),
self.arch.name, self.pkgname)
- def get_full_url(self, proto='http'):
+ def get_full_url(self, proto='https'):
'''get a URL suitable for things like email including the domain'''
domain = Site.objects.get_current().domain
return '%s://%s%s' % (proto, domain, self.get_absolute_url())