From 80eb6396607dbdafc126761a71b09b24d5c69c4d Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 7 Dec 2020 10:57:45 +0100
Subject: [PATCH] max custom field name should be longer

---
 .../web/migrations/0192_auto_20201207_0956.py  | 18 ++++++++++++++++++
 .../custom_data/custom_study_subject_field.py  |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 smash/web/migrations/0192_auto_20201207_0956.py

diff --git a/smash/web/migrations/0192_auto_20201207_0956.py b/smash/web/migrations/0192_auto_20201207_0956.py
new file mode 100644
index 00000000..63b5cd45
--- /dev/null
+++ b/smash/web/migrations/0192_auto_20201207_0956.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.1.3 on 2020-12-07 09:56
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0191_auto_20201201_1033'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='customstudysubjectfield',
+            name='name',
+            field=models.CharField(max_length=64),
+        ),
+    ]
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 5e096da3..dd2d1836 100644
--- a/smash/web/models/custom_data/custom_study_subject_field.py
+++ b/smash/web/models/custom_data/custom_study_subject_field.py
@@ -6,7 +6,7 @@ from web.models.constants import CUSTOM_FIELD_TYPE
 
 
 class CustomStudySubjectField(models.Model):
-    name = models.CharField(max_length=20, null=False, blank=False)
+    name = models.CharField(max_length=64, null=False, blank=False)
     type = models.CharField(max_length=20, choices=CUSTOM_FIELD_TYPE, null=False, blank=False)
 
     possible_values = models.CharField(max_length=1024, null=True, blank=True, default='')
-- 
GitLab