Update by ialbert on Tue Oct 23 14:03:13 EDT 2018 from yolo.local
@@ -450,10 +450,10 @@ class Job(models.Model):
def get_url(self, path=''):
"""
- Return the url to the job directory"
+ Return the url to the job directory
"""
- return f"jobs/{self.uid}/" + path
+ return f"jobs/job-{self.uid}/" + path
def url(self):
return reverse("job_view", kwargs=dict(uid=self.uid))
@@ -501,7 +501,7 @@ class Job(models.Model):
self.name = self.name or self.analysis.name
# write an index.html to the file
if not os.path.isdir(self.path):
- path = join(settings.MEDIA_ROOT, "jobs", f"{self.uid}")
+ path = join(settings.MEDIA_ROOT, "jobs", f"job-{self.uid}")
os.makedirs(path)
self.path = path
