=== modified file 'lava_scheduler_app/models.py'
@@ -359,10 +359,10 @@
@property
def results_link(self):
- if self._results_link:
+ if self._results_bundle:
+ return self._results_bundle.get_permalink()
+ elif self._results_link:
return self._results_link
- elif self._results_bundle:
- return self._results_bundle.get_permalink()
else:
return None
=== modified file 'lava_scheduler_app/views.py'
@@ -769,7 +769,7 @@
job = get_restricted_job(request.user, pk)
json_text = simplejson.dumps({
'status': job.get_status_display(),
- 'results_link': job.results_link,
+ 'results_link': request.build_absolute_uri(job.results_link),
})
content_type = 'application/json'
if 'callback' in request.GET: