From 56d56a2f4bc5ea7eb9174d8ca30827eeeba23a46 Mon Sep 17 00:00:00 2001 From: Daniel Perrefort Date: Thu, 11 Jul 2024 11:14:01 -0400 Subject: [PATCH] Increase description field maximum length to 20,000 (#336) --- docs/api.yml | 4 ++-- ...0005_alter_allocationrequest_description.py | 18 ++++++++++++++++++ keystone_api/apps/allocations/models.py | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 keystone_api/apps/allocations/migrations/0005_alter_allocationrequest_description.py diff --git a/docs/api.yml b/docs/api.yml index bc605baa..ccc642a0 100644 --- a/docs/api.yml +++ b/docs/api.yml @@ -4472,7 +4472,7 @@ components: maxLength: 250 description: type: string - maxLength: 1600 + maxLength: 20000 submitted: type: string format: date @@ -4703,7 +4703,7 @@ components: maxLength: 250 description: type: string - maxLength: 1600 + maxLength: 20000 submitted: type: string format: date diff --git a/keystone_api/apps/allocations/migrations/0005_alter_allocationrequest_description.py b/keystone_api/apps/allocations/migrations/0005_alter_allocationrequest_description.py new file mode 100644 index 00000000..0979692d --- /dev/null +++ b/keystone_api/apps/allocations/migrations/0005_alter_allocationrequest_description.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.4 on 2024-07-11 14:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('allocations', '0004_alter_allocation_awarded_alter_allocation_final_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='allocationrequest', + name='description', + field=models.TextField(max_length=20000), + ), + ] diff --git a/keystone_api/apps/allocations/models.py b/keystone_api/apps/allocations/models.py index c274f4da..595aea09 100644 --- a/keystone_api/apps/allocations/models.py +++ b/keystone_api/apps/allocations/models.py @@ -67,7 +67,7 @@ class StatusChoices(models.TextChoices): CHANGES = 'CR', 'Changes Requested' title = models.CharField(max_length=250) - description = models.TextField(max_length=1600) + description = models.TextField(max_length=20_000) submitted = models.DateField(auto_now=True) status = models.CharField(max_length=2, choices=StatusChoices.choices, default=StatusChoices.PENDING) active = models.DateField(null=True, blank=True)