From c96606cc987224a06cb6fa7d355642444603879a Mon Sep 17 00:00:00 2001 From: Claire Peters Date: Thu, 26 Oct 2023 15:40:14 -0700 Subject: [PATCH] offer letter code to expense code --- .../allocation/templates/allocation/allocation_detail.html | 2 +- coldfront/core/allocation/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coldfront/core/allocation/templates/allocation/allocation_detail.html b/coldfront/core/allocation/templates/allocation/allocation_detail.html index 3bcc9bc5f..de95b96c6 100644 --- a/coldfront/core/allocation/templates/allocation/allocation_detail.html +++ b/coldfront/core/allocation/templates/allocation/allocation_detail.html @@ -117,7 +117,7 @@

Allocation Information

{% if offer_letter_code %} - Offer Letter Code: + Requested Expense Code: {% for code in offer_letter_code %} {{ code.value }}
diff --git a/coldfront/core/allocation/views.py b/coldfront/core/allocation/views.py index 6632ef753..c6ffc986f 100644 --- a/coldfront/core/allocation/views.py +++ b/coldfront/core/allocation/views.py @@ -226,8 +226,8 @@ def get_context_data(self, **kwargs): ) context['expense_codes'] = expense_codes - offer_letter_code_type = AllocationAttributeType.objects.get(name="Offer Letter Code") - context['offer_letter_code'] = allocation_obj.allocationattribute_set.filter( + offer_letter_code_type = AllocationAttributeType.objects.get(name="Expense Code") + context['expense_code'] = allocation_obj.allocationattribute_set.filter( allocation_attribute_type=offer_letter_code_type )