Skip to content

Commit

Permalink
Merge pull request #952 from uktrade/hotfix/document-link-in-rich-text
Browse files Browse the repository at this point in the history
HOTFIX: reinstate document-link as rich-text field option
  • Loading branch information
Steve Jalim authored Feb 17, 2021
2 parents 8c6aec0 + 13d3c5c commit ff3ed07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Pre-release
### Fixed bugs
- NO TICKET - add document-link back in as rich-text option

### Implemented enhancements

Expand All @@ -12,8 +14,6 @@
- GP2-1424 - Cost and pricing page - local taxes section
- GP2-1423 - Cost and pricing page - content change
- GP2-1411 - Refactor ArticlePage to use a StreamField with new PullQuoteBlock
### Fixed bugs


## [1.2.0](https://github.com/uktrade/great-cms/releases/tag/1.2.0)

Expand Down
1 change: 1 addition & 0 deletions core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'ul',
'hr',
'link',
'document-link', #  to allow links to Wagtail-held documents
# 'blockquote', # NOT used - use a PullQuoteBlock in a StreamField, or similar
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Migration(migrations.Migration):
(
'text',
wagtail.core.blocks.RichTextBlock(
features=('h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link')
features=('h2', 'h3', 'h4', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link')
),
),
(
Expand Down

0 comments on commit ff3ed07

Please sign in to comment.