add assessed by to the results table

This commit is contained in:
Ross
2024-06-20 13:59:22 +01:00
parent e46d682635
commit 9bf8034179
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -8,6 +8,7 @@
<th>Specialty</th>
<th>Name</th>
<th>ID</th>
<th>Assessed by</th>
<th>Outcome</th>
<th>Outcome (reason)</th>
<th>Outcome (free text)</th>
@@ -20,6 +21,7 @@
<td>{{item.specialty}}</td>
<td>{{item.name}}</td>
<td>{{item.rcr_platform_id}}</td>
<td>{{item.get_assessed_by|safe}}</td>
<td>{{item.outcome}}</td>
<td>{{item.outcome_reason}}</td>
<td>{{item.outcome_free_text}}</td>
+1 -1
View File
@@ -73,7 +73,7 @@ def radiology_review(request):
return redirect(f"{reverse('rcr:radiology_index_all_view')}?needs_review=true")
def radiology_results(request):
items = Item.objects.all()
items = Item.objects.all().prefetch_related("assessed_by")
return render(request, "rcr/results.html", {"items": items})