From 83a6049facff79651aa84068f7feaa5e6b29b7eb Mon Sep 17 00:00:00 2001 From: John Tordoff Date: Mon, 13 Jan 2025 15:16:14 -0500 Subject: [PATCH] [IAC][Bugs] Fix migrations and serializer (#10915) * rename migrations for readbility * fix serialization of `institutional_request_access_enabled` to not be string --------- Co-authored-by: John Tordoff <> --- api/institutions/serializers.py | 2 +- ...py => 0025_institutional_request_access_enabled_and_more.py} | 0 ..._more.py => 0026_add_is_institutional_request_is_curator.py} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) 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/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', 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 = [