optional description

This commit is contained in:
Tobias Brunner 2025-02-28 14:27:19 +01:00
parent 03b5af8244
commit 7a038252ea
No known key found for this signature in database
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 5.1.5 on 2025-02-28 13:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("services", "0012_remove_serviceoffering_slug"),
]
operations = [
migrations.AlterField(
model_name="plan",
name="description",
field=models.TextField(blank=True, null=True),
),
]

View file

@ -235,7 +235,7 @@ class ServiceOffering(models.Model):
class Plan(models.Model):
name = models.CharField(max_length=100)
description = ProseEditorField()
description = ProseEditorField(blank=True, null=True)
plan_description = models.ForeignKey(
ReusableText,
on_delete=models.PROTECT,