From 8cb7bcc02149ee2626ea0f5b9ad7dcc4915532d1 Mon Sep 17 00:00:00 2001 From: Sachi King Date: Sun, 7 May 2017 16:17:29 +1000 Subject: [PATCH] Link to GCP storage for files WARNING: We need to reflect in the webpage that these won't be behind a login. GitLab Issue #2 --- symposion/proposals/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/symposion/proposals/models.py b/symposion/proposals/models.py index 94568870..4a8650a0 100644 --- a/symposion/proposals/models.py +++ b/symposion/proposals/models.py @@ -248,5 +248,4 @@ class SupportingDocument(models.Model): description = models.CharField(max_length=140, verbose_name=_("Description")) def download_url(self): - return reverse("proposal_document_download", - args=[self.pk, os.path.basename(self.file.name).lower()]) + return self.file.url