From 502ede151af0bb0c038b897c52df86daddf70a9c Mon Sep 17 00:00:00 2001 From: Ashish Acharya Date: Wed, 6 Dec 2023 09:51:02 -0600 Subject: [PATCH] Make additional info field blankable --- ...er_contentcurationrequest_additional_info.py | 17 +++++++++++++++++ feedback/models.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 feedback/migrations/0002_alter_contentcurationrequest_additional_info.py diff --git a/feedback/migrations/0002_alter_contentcurationrequest_additional_info.py b/feedback/migrations/0002_alter_contentcurationrequest_additional_info.py new file mode 100644 index 00000000..c9250b51 --- /dev/null +++ b/feedback/migrations/0002_alter_contentcurationrequest_additional_info.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.6 on 2023-12-06 15:50 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("feedback", "0001_initial"), + ] + + operations = [ + migrations.AlterField( + model_name="contentcurationrequest", + name="additional_info", + field=models.TextField(blank=True, default=""), + ), + ] diff --git a/feedback/models.py b/feedback/models.py index 31adc044..bc82b41a 100644 --- a/feedback/models.py +++ b/feedback/models.py @@ -18,7 +18,7 @@ class ContentCurationRequest(models.Model): scientific_focus = models.CharField(max_length=200) data_type = models.CharField(max_length=100) data_link = models.CharField(max_length=1000) - additional_info = models.TextField() + additional_info = models.TextField(default="", blank=True) class Meta: verbose_name = "Content Curation Request"