Skip to content

Commit

Permalink
Increase description field maximum length to 20,000 (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Jul 11, 2024
1 parent beb20f9 commit 56d56a2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4472,7 +4472,7 @@ components:
maxLength: 250
description:
type: string
maxLength: 1600
maxLength: 20000
submitted:
type: string
format: date
Expand Down Expand Up @@ -4703,7 +4703,7 @@ components:
maxLength: 250
description:
type: string
maxLength: 1600
maxLength: 20000
submitted:
type: string
format: date
Expand Down
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion keystone_api/apps/allocations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56d56a2

Please sign in to comment.