dev: update instance configuration model to take null and empty values

This commit is contained in:
pablohashescobar 2023-11-08 19:01:45 +05:30
parent a4f28b32f5
commit 66cb297587
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2023-11-08 13:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('license', '0002_instanceconfiguration'),
]
operations = [
migrations.AlterField(
model_name='instanceconfiguration',
name='value',
field=models.TextField(blank=True, null=True),
),
]

View File

@ -32,7 +32,7 @@ class Instance(BaseModel):
class InstanceConfiguration(AuditModel):
key = models.CharField(max_length=100, unique=True)
value = models.TextField()
value = models.TextField(null=True, blank=True)
class Meta:
verbose_name = "Instance Configuration"