SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4832cbc5 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Hotfix upload path

parent 67aee1cb
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ __pycache__ ...@@ -15,7 +15,7 @@ __pycache__
.python-version .python-version
/uploads*
/media* /media*
SCIPOST_JOURNALS SCIPOST_JOURNALS
......
...@@ -40,7 +40,7 @@ class Comment(TimeStampedModel): ...@@ -40,7 +40,7 @@ class Comment(TimeStampedModel):
vetted_by = models.ForeignKey(Contributor, blank=True, null=True, vetted_by = models.ForeignKey(Contributor, blank=True, null=True,
on_delete=models.CASCADE, on_delete=models.CASCADE,
related_name='comment_vetted_by') 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, validators=[validate_file_extension,
validate_max_file_size]) validate_max_file_size])
# a Comment is either for a Commentary or Submission or a ThesisLink. # a Comment is either for a Commentary or Submission or a ThesisLink.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment