diff --git a/coldfront/core/allocation/templates/allocation/allocation_change_list.html b/coldfront/core/allocation/templates/allocation/allocation_change_list.html index ab24df83d..84f26a53f 100644 --- a/coldfront/core/allocation/templates/allocation/allocation_change_list.html +++ b/coldfront/core/allocation/templates/allocation/allocation_change_list.html @@ -58,7 +58,6 @@

Allocation Change Requests

{% endif %} -
{% if change.allocationattributechangerequest_set.all %} + {% else %}
{% csrf_token %} +
{% endif %} - -
{% endfor %} diff --git a/coldfront/core/allocation/templates/allocation/allocation_request_list.html b/coldfront/core/allocation/templates/allocation/allocation_request_list.html index de84ad8ff..bb7a42808 100644 --- a/coldfront/core/allocation/templates/allocation/allocation_request_list.html +++ b/coldfront/core/allocation/templates/allocation/allocation_request_list.html @@ -58,8 +58,8 @@

Allocation Requests

{% csrf_token %} + - diff --git a/coldfront/plugins/fasrc_monitoring/utils.py b/coldfront/plugins/fasrc_monitoring/utils.py index defed7ed8..d24d4730c 100644 --- a/coldfront/plugins/fasrc_monitoring/utils.py +++ b/coldfront/plugins/fasrc_monitoring/utils.py @@ -1,3 +1,4 @@ +from django.test import Client from math import isclose from concurrent.futures import ThreadPoolExecutor @@ -6,7 +7,8 @@ class UIChecker: def __init__(self, username, password): - self.client = utils.login_return_client(username, password) + self.client = Client() + self.client.login(username=username, password=password) def check_page_loads(self, url): """try to load page from url with self.client.