Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/staff/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,22 +514,6 @@ class SampleTable(SampleBaseTable, StatusMixinTableSamples, SampleStatusMixinTab
verbose_name="Order Status", empty_values=(), orderable=True
)

def render_analysis_markers(self, record: Sample) -> str:
marker_qs = (
SampleMarkerAnalysis.objects.filter(sample=record)
.select_related("marker")
.distinct("marker__name")
)
if not marker_qs.exists():
return "-"
return ", ".join([sma.marker.name for sma in marker_qs])

analysis_markers = tables.Column(
verbose_name="Analysis Markers",
accessor="pk",
orderable=False,
)

def get_order_id_link(record: Sample) -> str:
if record.order:
return record.order.get_absolute_staff_url()
Expand All @@ -551,7 +535,6 @@ class Meta(SampleBaseTable.Meta):
]
sequence = SampleBaseTable.Meta.sequence + [
"sample_status",
"analysis_markers",
"order__id",
"order__status",
"notes",
Expand Down