Skip to content
Snippets Groups Projects
Commit 8d10e16d authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Update the model to remove the required formatting from the admin

parent 3c23774c
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,6 @@ class Migration(migrations.Migration): ...@@ -15,6 +15,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='projectpage', model_name='projectpage',
name='categories', name='categories',
field=models.TextField(default='{}'), field=models.TextField(default='{}', blank=True),
), ),
] ]
...@@ -109,7 +109,7 @@ class ProjectPage(FundingMixin, BasePage): ...@@ -109,7 +109,7 @@ class ProjectPage(FundingMixin, BasePage):
status = models.CharField(choices=STATUSES, max_length=25, default=STATUSES[0][0]) status = models.CharField(choices=STATUSES, max_length=25, default=STATUSES[0][0])
body = StreamField(StoryBlock()) body = StreamField(StoryBlock())
categories = models.TextField(default="{}") categories = models.TextField(default='{}', blank=True)
search_fields = BasePage.search_fields + [ search_fields = BasePage.search_fields + [
index.SearchField('introduction'), index.SearchField('introduction'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment