Skip to content

Commit

Permalink
[IAC][Bugs] Fix migrations and serializer (#10915)
Browse files Browse the repository at this point in the history
* rename migrations for readbility

* fix serialization of `institutional_request_access_enabled` to not be string

---------

Co-authored-by: John Tordoff <>
  • Loading branch information
Johnetordoff authored Jan 13, 2025
1 parent 78597c8 commit 83a6049
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/institutions/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 83a6049

Please sign in to comment.