diff --git a/CHANGELOG b/CHANGELOG index 05746b11eb1a7db5417eb3014e0c457003b0377c..d2bcb93280724da865c45b7b4e530951832d213a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ smasch (1.0.0~beta.6-1) unstable; urgency=low * bug fix: when two visits with the same start date are created compute visit number on the visit creation order basis (#369) + * bug fix: default value should be able to store longer values - the same as + possible text value (#373) -- Piotr Gawron <piotr.gawron@uni.lu> Wed, 24 Feb 2021 12:00:00 +0200 diff --git a/smash/web/migrations/0192_auto_20210224_1703.py b/smash/web/migrations/0192_auto_20210224_1703.py new file mode 100644 index 0000000000000000000000000000000000000000..2c7f07530aafd1b987f490c3f57aa399965624d5 --- /dev/null +++ b/smash/web/migrations/0192_auto_20210224_1703.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.4 on 2021-02-24 17:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('web', '0191_auto_20201201_1033'), + ] + + operations = [ + migrations.AlterField( + model_name='customstudysubjectfield', + name='default_value', + field=models.CharField(blank=True, max_length=256, null=True), + ), + ] diff --git a/smash/web/models/custom_data/custom_study_subject_field.py b/smash/web/models/custom_data/custom_study_subject_field.py index dd2d183603701a2d13765bbd07d3173d6176977e..6db608d73491f0504e3d590c841d50d6b8afc636 100644 --- a/smash/web/models/custom_data/custom_study_subject_field.py +++ b/smash/web/models/custom_data/custom_study_subject_field.py @@ -11,7 +11,7 @@ class CustomStudySubjectField(models.Model): possible_values = models.CharField(max_length=1024, null=True, blank=True, default='') - default_value = models.CharField(max_length=20, null=True, blank=True) + default_value = models.CharField(max_length=256, null=True, blank=True) readonly = models.BooleanField(default=False) required = models.BooleanField(default=False)