From 4408f500cbd4ce3a17c20a3de539267a84999589 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Mon, 29 Apr 2024 10:00:14 +0200 Subject: [PATCH] Do not set default description for Public Entities --- .../migrations/0078_auto_20240418_2212.py | 18 ++++++++++++++++++ budgetportal/models/government.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 budgetportal/migrations/0078_auto_20240418_2212.py diff --git a/budgetportal/migrations/0078_auto_20240418_2212.py b/budgetportal/migrations/0078_auto_20240418_2212.py new file mode 100644 index 00000000..afc03545 --- /dev/null +++ b/budgetportal/migrations/0078_auto_20240418_2212.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.20 on 2024-04-18 22:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('budgetportal', '0077_publicentity_amount'), + ] + + operations = [ + migrations.AlterField( + model_name='publicentity', + name='intro', + field=models.TextField(blank=True, default=''), + ), + ] diff --git a/budgetportal/models/government.py b/budgetportal/models/government.py index 11affc30..b6629665 100644 --- a/budgetportal/models/government.py +++ b/budgetportal/models/government.py @@ -1700,7 +1700,7 @@ class PublicEntity(models.Model): slug = AutoSlugField( populate_from="name", max_length=200, always_update=True, editable=True ) - intro = models.TextField(default="A description of this public entity.") + intro = models.TextField(default="", blank=True) pfma = models.CharField( max_length=10, blank=False, null=False, choices=PFMA_CHOICES