From 8d10e16da832792dab4ca033c35f20b42cbc0b9d Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Thu, 18 Jan 2018 11:51:14 +0000 Subject: [PATCH] Update the model to remove the required formatting from the admin --- .../public/projects/migrations/0004_projectpage_categories.py | 2 +- opentech/public/projects/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/public/projects/migrations/0004_projectpage_categories.py b/opentech/public/projects/migrations/0004_projectpage_categories.py index efb106a02..ad7728e58 100644 --- a/opentech/public/projects/migrations/0004_projectpage_categories.py +++ b/opentech/public/projects/migrations/0004_projectpage_categories.py @@ -15,6 +15,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='projectpage', name='categories', - field=models.TextField(default='{}'), + field=models.TextField(default='{}', blank=True), ), ] diff --git a/opentech/public/projects/models.py b/opentech/public/projects/models.py index 52e3f21a2..ece39755b 100644 --- a/opentech/public/projects/models.py +++ b/opentech/public/projects/models.py @@ -109,7 +109,7 @@ class ProjectPage(FundingMixin, BasePage): status = models.CharField(choices=STATUSES, max_length=25, default=STATUSES[0][0]) body = StreamField(StoryBlock()) - categories = models.TextField(default="{}") + categories = models.TextField(default='{}', blank=True) search_fields = BasePage.search_fields + [ index.SearchField('introduction'), -- GitLab