From d2881d74b070980a96cf08fdfaa989171c486582 Mon Sep 17 00:00:00 2001 From: Brian Scorcia Date: Tue, 23 Nov 2021 15:00:03 -0500 Subject: [PATCH] #294: Patching up a line in the allocation views.py file that was accidentally edited --- .../templates/allocation/allocation_change_list.html | 8 +++++++- coldfront/core/allocation/views.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/coldfront/core/allocation/templates/allocation/allocation_change_list.html b/coldfront/core/allocation/templates/allocation/allocation_change_list.html index 376db2125..7492595ac 100644 --- a/coldfront/core/allocation/templates/allocation/allocation_change_list.html +++ b/coldfront/core/allocation/templates/allocation/allocation_change_list.html @@ -2,11 +2,16 @@ {% load crispy_forms_tags %} {% load common_tags %} {% load static %} + + {% block title %} Allocation Review New and Pending Change Requests {% endblock %} + + {% block content %}

Allocation Change Requests

+ {% if allocation_change_list %}
@@ -60,9 +65,10 @@

Allocation Change Requests

No new or pending allocation change requests! {% endif %} + -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/coldfront/core/allocation/views.py b/coldfront/core/allocation/views.py index eea672373..e819ea02f 100644 --- a/coldfront/core/allocation/views.py +++ b/coldfront/core/allocation/views.py @@ -1434,7 +1434,7 @@ def post(self, request, *args, **kwargs): return HttpResponseRedirect(reverse('allocation-invoice-detail', kwargs={'pk': pk})) -class AllocationAddInvoiceNoteView(LoginRequiredMixin, UserPassesTestMixin, View): +class AllocationAddInvoiceNoteView(LoginRequiredMixin, UserPassesTestMixin, CreateView): model = AllocationUserNote template_name = 'allocation/allocation_add_invoice_note.html' fields = ('is_private', 'note',)