From 4832cbc56e1e8225c645da70a95fd37ab107d632 Mon Sep 17 00:00:00 2001
From: productionserver <jorran@web507.webfaction.com>
Date: Tue, 14 Feb 2017 19:19:48 +0000
Subject: [PATCH] Hotfix upload path

---
 .gitignore         | 2 +-
 comments/models.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5485507a5..4d43f387e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,7 +15,7 @@ __pycache__
 
 .python-version
 
-
+/uploads*
 /media*
 
 SCIPOST_JOURNALS
diff --git a/comments/models.py b/comments/models.py
index f068f9dc8..3e09732a2 100644
--- a/comments/models.py
+++ b/comments/models.py
@@ -40,7 +40,7 @@ class Comment(TimeStampedModel):
     vetted_by = models.ForeignKey(Contributor, blank=True, null=True,
                                   on_delete=models.CASCADE,
                                   related_name='comment_vetted_by')
-    file_attachment = models.FileField(upload_to='comments/%Y/%m/%d/', blank=True,
+    file_attachment = models.FileField(upload_to='uploads/comments/%Y/%m/%d/', blank=True,
                                        validators=[validate_file_extension,
                                                    validate_max_file_size])
     # a Comment is either for a Commentary or Submission or a ThesisLink.
-- 
GitLab