diff --git a/beat/web/experiments/models.py b/beat/web/experiments/models.py index 7b614a0d905b2b4db8af795bb68f3068b7008915..547d5d59e07310f8f1035007723d0f8cb0bcbda3 100644 --- a/beat/web/experiments/models.py +++ b/beat/web/experiments/models.py @@ -966,7 +966,7 @@ class Block(models.Model): # search for other jobs with similar outputs and has no children yet similar = Job.objects.select_for_update().filter(\ - block__outputs__in=self.outputs, child=None).first() + block__outputs__in=self.outputs.all(), child=None).first() Job(block=self, parent=similar).save() @@ -1147,7 +1147,7 @@ class CachedFile(models.Model): def absolute_path(self): '''Returns the full path prefix to the cached file on disk''' - return os.path.join(settings.CACHE_ROOT, self.relative_path()) + return os.path.join(settings.CACHE_ROOT, self.path()) def files(self):