diff --git a/templates/ops/batch_detail.html b/templates/ops/batch_detail.html
index b9fdc19..f06df62 100644
--- a/templates/ops/batch_detail.html
+++ b/templates/ops/batch_detail.html
@@ -16,7 +16,7 @@
| Weight | {{ batch.weight_kg|default:'-' }} kg |
| Origin Facility | {{ batch.origin_facility }} |
| Harvest Date | {{ batch.harvest_date|date:'d/m/Y'|default:'-' }} |
- | Created By | {{ batch.created_by.full_name|default:batch.created_by.email|default:'-' }} |
+ | Created By | {% if batch.created_by %}{{ batch.created_by.full_name|default:batch.created_by.email }}{% else %}-{% endif %} |
| Created At | {{ batch.created_at|date:'d/m/Y H:i' }} |
diff --git a/templates/ops/coa_review_detail.html b/templates/ops/coa_review_detail.html
index 86bed2c..17f2e83 100644
--- a/templates/ops/coa_review_detail.html
+++ b/templates/ops/coa_review_detail.html
@@ -22,7 +22,7 @@
| Specification | {{ coa.spec_version|default:'-' }} |
| Issuer | {{ coa.issuer|default:'-' }} |
| Issue Date | {{ coa.issue_date|date:'d/m/Y'|default:'-' }} |
- | Quality Approved By | {{ coa.quality_approved_by.full_name|default:coa.quality_approved_by.email|default:'-' }} |
+ | Quality Approved By | {% if coa.quality_approved_by %}{{ coa.quality_approved_by.full_name|default:coa.quality_approved_by.email }}{% else %}-{% endif %} |
| Quality Approved At | {{ coa.quality_approved_at|date:'d/m/Y H:i'|default:'-' }} |
| Released At | {{ coa.released_at|date:'d/m/Y H:i'|default:'-' }} |
| Published At | {{ coa.published_at|date:'d/m/Y H:i'|default:'-' }} |
diff --git a/templates/ops/document_list.html b/templates/ops/document_list.html
index 3bccc01..db2476f 100644
--- a/templates/ops/document_list.html
+++ b/templates/ops/document_list.html
@@ -36,7 +36,7 @@
{{ d.get_doc_type_display }} |
{{ d.batch.batch_reference|default:'-' }} |
{{ d.get_visibility_display }} |
- {{ d.uploaded_by.full_name|default:d.uploaded_by.email|default:'-' }} |
+ {% if d.uploaded_by %}{{ d.uploaded_by.full_name|default:d.uploaded_by.email }}{% else %}-{% endif %} |
{{ d.uploaded_at|date:'d/m/Y' }} |
{% empty %}
diff --git a/templates/ops/eudr_detail.html b/templates/ops/eudr_detail.html
index 2cf840b..b4542e3 100644
--- a/templates/ops/eudr_detail.html
+++ b/templates/ops/eudr_detail.html
@@ -43,7 +43,7 @@
| {{ link.harvest_intake.intake_reference }} |
{{ link.harvest_intake.intake_date|date:'d/m/Y'|default:'-' }} |
- {{ link.weight_allocated_kg|default:link.harvest_intake.weight_kg }} |
+ {% if link.weight_allocated_kg %}{{ link.weight_allocated_kg }}{% elif link.harvest_intake %}{{ link.harvest_intake.weight_kg }}{% else %}-{% endif %} |
{{ link.harvest_intake.origin_zone.zone_code|default:'-' }} |
{% if link.harvest_intake.origin_zone %}{{ link.harvest_intake.origin_zone.get_verification_status_display }}{% else %}-{% endif %} |
{{ link.harvest_intake.collector_group.name|default:'-' }} |
diff --git a/templates/ops/qc_verify_detail.html b/templates/ops/qc_verify_detail.html
index 85c0469..5cb5e4c 100644
--- a/templates/ops/qc_verify_detail.html
+++ b/templates/ops/qc_verify_detail.html
@@ -26,7 +26,7 @@
| Result Status | {{ result.get_result_status_display }} |
| Lab Reference | {{ result.lab_reference|default:'-' }} |
| Tested By | {{ result.tested_by|default:'-' }} |
- | Entered By | {{ result.entered_by.full_name|default:result.entered_by.email|default:'-' }} |
+ | Entered By | {% if result.entered_by %}{{ result.entered_by.full_name|default:result.entered_by.email }}{% else %}-{% endif %} |
| Tested At | {{ result.tested_at|date:'d/m/Y H:i' }} |
diff --git a/templates/ops/qc_verify_list.html b/templates/ops/qc_verify_list.html
index c9853a3..f7913d6 100644
--- a/templates/ops/qc_verify_list.html
+++ b/templates/ops/qc_verify_list.html
@@ -37,7 +37,7 @@
{{ r.moisture_percentage }} |
{{ r.peroxide_value }} |
{{ r.visual_grade }} |
- {{ r.entered_by.full_name|default:r.entered_by.email|default:'-' }} |
+ {% if r.entered_by %}{{ r.entered_by.full_name|default:r.entered_by.email }}{% else %}-{% endif %} |
{{ r.spec_version|default:'-' }} |
Verify |