From 17f4b167ad8d4078abcbebea50defc6205b401d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com> Date: Tue, 18 May 2021 15:33:26 +0200 Subject: [PATCH] elections2021: Allow document links everywhere --- elections2021/constants.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/elections2021/constants.py b/elections2021/constants.py index c7ef4f5f..e92451d8 100644 --- a/elections2021/constants.py +++ b/elections2021/constants.py @@ -61,11 +61,27 @@ CANDIDATE_RICH_TEXT_FEATURES = [ "ol-elections2021", "blockquote-elections2021", "link", + "document-link", ] -RESTRICTED_FEATURES = ["superscript", "italic", "link"] -STANDARD_FEATURES = ["h4", "ul-elections2021", "superscript", "link", "italic"] -EXTRA_FEATURES = ["h4", "ul-program-elections2021", "superscript", "link", "italic"] +RESTRICTED_FEATURES = ["superscript", "italic", "link", "document-link"] + +STANDARD_FEATURES = [ + "h4", + "ul-elections2021", + "superscript", + "link", + "italic", + "document-link", +] +EXTRA_FEATURES = [ + "h4", + "ul-program-elections2021", + "superscript", + "link", + "italic", + "document-link", +] ARTICLES_PER_PAGE = 9 TOP_CANDIDATES_NUM = 12 -- GitLab