Skip to content
Snippets Groups Projects
Commit a3b49a5f authored by Brian Moe's avatar Brian Moe
Browse files

Fixed small bug with EventLog.fileurl when file_version == 0

parent 05ffb293
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ class EventLog(models.Model):
def fileurl(self):
if self.filename:
actual_filename = self.filename
if self.file_version:
if self.file_version >= 0:
actual_filename += ',%d' % self.file_version
return reverse('file', args=[self.event.graceid(), actual_filename])
#return os.path.join(self.event.weburl(), 'private', self.filename)
......
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