=== modified file 'lava_scheduler_app/admin.py'
@@ -38,9 +38,19 @@
class DeviceAdmin(admin.ModelAdmin):
actions = [online_action, offline_action, health_unknown, retire_action]
list_filter = ['device_type', 'status']
+ raw_id_fields = ['current_job', 'last_health_report_job']
+
+
+class TestJobAdmin(admin.ModelAdmin):
+ raw_id_fields = ['_results_bundle']
+
+
+class DeviceStateTransitionAdmin(admin.ModelAdmin):
+ raw_id_fields = ['job']
+
admin.site.register(Device, DeviceAdmin)
-admin.site.register(DeviceStateTransition)
+admin.site.register(DeviceStateTransition, DeviceStateTransitionAdmin)
admin.site.register(DeviceType)
-admin.site.register(TestJob)
+admin.site.register(TestJob, TestJobAdmin)
admin.site.register(Tag)
=== modified file 'lava_scheduler_app/templates/lava_scheduler_app/job_sidebar.html'
@@ -17,7 +17,9 @@
{% if job.requested_device %}
<dt>Requested device:</dt>
- <dd>{{ job.requested_device }}</dd>
+ <dd>
+ <a href="{{ job.requested_device.get_absolute_url }}">{{ job.requested_device }}</a>
+ </dd>
{% endif %}
{% if job.requested_device_type %}
@@ -45,7 +47,9 @@
{% if job.actual_device %}
<dt>On device:</dt>
- <dd>{{ job.actual_device }}</dd>
+ <dd>
+ <a href="{{ job.actual_device.get_absolute_url }}">{{ job.actual_device }}</a>
+ </dd>
{% endif %}
<dt>Submitted at:</dt>
<dd>{{ job.submit_time }}</dd>
@@ -67,7 +71,7 @@
</li>
{% endif %}
<li>
- <a href="{% url lava.scheduler.job.definition job.pk %}">Defintion</a>
+ <a href="{% url lava.scheduler.job.definition job.pk %}">Definition</a>
</li>
{% if job.results_link %}
<li>