From 7eaf52bae51842f16fb911a55df4120f4ab6d435 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Wed, 8 Nov 2023 19:43:09 +0530 Subject: [PATCH] dev: set default values --- .../0004_alter_instanceconfiguration_value.py | 18 ++++++++++++++++++ apiserver/plane/license/models/instance.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apiserver/plane/license/migrations/0004_alter_instanceconfiguration_value.py diff --git a/apiserver/plane/license/migrations/0004_alter_instanceconfiguration_value.py b/apiserver/plane/license/migrations/0004_alter_instanceconfiguration_value.py new file mode 100644 index 000000000..9bca1fd6b --- /dev/null +++ b/apiserver/plane/license/migrations/0004_alter_instanceconfiguration_value.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.5 on 2023-11-08 14:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('license', '0003_alter_instanceconfiguration_value'), + ] + + operations = [ + migrations.AlterField( + model_name='instanceconfiguration', + name='value', + field=models.TextField(blank=True, default=None, null=True), + ), + ] diff --git a/apiserver/plane/license/models/instance.py b/apiserver/plane/license/models/instance.py index 627a6ea92..ca6e811b4 100644 --- a/apiserver/plane/license/models/instance.py +++ b/apiserver/plane/license/models/instance.py @@ -32,7 +32,7 @@ class Instance(BaseModel): class InstanceConfiguration(AuditModel): key = models.CharField(max_length=100, unique=True) - value = models.TextField(null=True, blank=True) + value = models.TextField(null=True, blank=True, default=None) class Meta: verbose_name = "Instance Configuration"