From 63d98d64aeb54b167025ea41c00eae077324f5cf Mon Sep 17 00:00:00 2001 From: John Tordoff <> Date: Tue, 12 Dec 2023 13:45:45 -0500 Subject: [PATCH] change metadata options character length to 127 --- ...017_auto_20231207_1407.py => 0017_auto_20231212_1843.py} | 6 +++--- osf/models/collection_submission.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename osf/migrations/{0017_auto_20231207_1407.py => 0017_auto_20231212_1843.py} (92%) diff --git a/osf/migrations/0017_auto_20231207_1407.py b/osf/migrations/0017_auto_20231212_1843.py similarity index 92% rename from osf/migrations/0017_auto_20231207_1407.py rename to osf/migrations/0017_auto_20231212_1843.py index 13bb3083252..5c13864dfc7 100644 --- a/osf/migrations/0017_auto_20231207_1407.py +++ b/osf/migrations/0017_auto_20231212_1843.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.17 on 2023-12-07 14:07 +# Generated by Django 3.2.17 on 2023-12-12 18:43 import django.contrib.postgres.fields from django.db import migrations, models @@ -24,11 +24,11 @@ class Migration(migrations.Migration): migrations.AddField( model_name='collectionsubmission', name='data_type', - field=models.CharField(blank=True, help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', max_length=500), + field=models.CharField(blank=True, help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', max_length=127), ), migrations.AddField( model_name='collectionsubmission', name='disease', - field=models.CharField(blank=True, help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', max_length=500), + field=models.CharField(blank=True, help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', max_length=127), ), ] diff --git a/osf/models/collection_submission.py b/osf/models/collection_submission.py index 40bdf13defc..963d38b116b 100644 --- a/osf/models/collection_submission.py +++ b/osf/models/collection_submission.py @@ -42,12 +42,12 @@ class Meta: disease = models.CharField( help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', blank=True, - max_length=500 + max_length=127 ) data_type = models.CharField( help_text='This field was added for use by Inflammatory Bowel Disease Genetics Consortium', blank=True, - max_length=500 + max_length=127 ) machine_state = models.IntegerField( choices=CollectionSubmissionStates.int_field_choices(),