Skip to content

Commit

Permalink
Merge pull request #774 from uktrade/XOT-1285-madb-markdown-field
Browse files Browse the repository at this point in the history
XOT-1285 - Make MADB content field markdown
  • Loading branch information
sdonk authored Jan 30, 2020
2 parents e2b15af + bb74fdd commit 9185175
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Pre-release

### Implemented enhancements

- XOT-1285 madb content markdown field

## [2020.01.29](https://github.com/uktrade/directory-cms/releases/tag/2020.01.29)
[Full Changelog](https://github.com/uktrade/directory-cms/compare/2020.01.20...2020.01.29)

Expand Down
2 changes: 1 addition & 1 deletion export_readiness/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ class HomePage(
verbose_name='Image'
)
madb_image_alt = models.TextField(null=True, blank=True, verbose_name='Image alt text')
madb_content = models.TextField(null=True, blank=True, verbose_name='Content')
madb_content = MarkdownField(null=True, blank=True, verbose_name='Content')
madb_cta_text = models.CharField(null=True, blank=True, max_length=255, verbose_name='CTA text')
madb_cta_url = models.CharField(null=True, blank=True, max_length=255, verbose_name='CTA URL')

Expand Down
2 changes: 1 addition & 1 deletion export_readiness/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class HomePageSerializer(BasePageSerializer):
madb_title = serializers.CharField(required=False)
madb_image = wagtail_fields.ImageRenditionField('original', required=False)
madb_image_alt = serializers.CharField(required=False)
madb_content = serializers.CharField(required=False)
madb_content = core_fields.MarkdownToHTMLField(required=False)
madb_cta_text = serializers.CharField(required=False)
madb_cta_url = serializers.CharField(required=False)

Expand Down

0 comments on commit 9185175

Please sign in to comment.