From bc8cbf34a1bad8b67276e7091538e8b9209a8397 Mon Sep 17 00:00:00 2001 From: John Tordoff <> Date: Mon, 13 Jan 2025 14:25:33 -0500 Subject: [PATCH 1/2] rename migrations for readbility --- ...py => 0025_institutional_request_access_enabled_and_more.py} | 0 ..._more.py => 0026_add_is_institutional_request_is_curator.py} | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename osf/migrations/{0025_contributor_is_curator_and_more.py => 0025_institutional_request_access_enabled_and_more.py} (100%) rename osf/migrations/{0026_contributor_is_curator_and_more.py => 0026_add_is_institutional_request_is_curator.py} (90%) diff --git a/osf/migrations/0025_contributor_is_curator_and_more.py b/osf/migrations/0025_institutional_request_access_enabled_and_more.py similarity index 100% rename from osf/migrations/0025_contributor_is_curator_and_more.py rename to osf/migrations/0025_institutional_request_access_enabled_and_more.py diff --git a/osf/migrations/0026_contributor_is_curator_and_more.py b/osf/migrations/0026_add_is_institutional_request_is_curator.py similarity index 90% rename from osf/migrations/0026_contributor_is_curator_and_more.py rename to osf/migrations/0026_add_is_institutional_request_is_curator.py index 84dbbb32bf1..51da69ada2c 100644 --- a/osf/migrations/0026_contributor_is_curator_and_more.py +++ b/osf/migrations/0026_add_is_institutional_request_is_curator.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ('osf', '0025_contributor_is_curator_and_more'), + ('osf', '0025_institutional_request_access_enabled_and_more'), ] operations = [ From 3d3a89e30b957354e1e29b6ada80ca451145b25b Mon Sep 17 00:00:00 2001 From: John Tordoff <> Date: Mon, 13 Jan 2025 14:26:19 -0500 Subject: [PATCH 2/2] fix serialization of `institutional_request_access_enabled` to not be string --- api/institutions/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/institutions/serializers.py b/api/institutions/serializers.py index 46a2f4f0bff..0262f9dddd7 100644 --- a/api/institutions/serializers.py +++ b/api/institutions/serializers.py @@ -41,7 +41,7 @@ class InstitutionSerializer(JSONAPISerializer): ser.CharField(read_only=True), permission='view_institutional_metrics', ) - institutional_request_access_enabled = ser.CharField(read_only=True) + institutional_request_access_enabled = ser.BooleanField(read_only=True) links = LinksField({ 'self': 'get_api_url', 'html': 'get_absolute_html_url',