From 699d24bc443f7be65e69ca6ad9b5adb6de7cb55d Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Wed, 31 May 2017 12:11:07 +0200 Subject: [PATCH] Fix tests on Python < 3.6 (remove f-string) --- src/wagtail_personalisation/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wagtail_personalisation/rules.py b/src/wagtail_personalisation/rules.py index 86948d5..6affc9b 100644 --- a/src/wagtail_personalisation/rules.py +++ b/src/wagtail_personalisation/rules.py @@ -150,7 +150,7 @@ class DayRule(AbstractBaseRule): description = { 'title': _('These users visit on'), - 'value': _('{}').format(", ".join([f"{day}" for day in chosen_days]).title()), + 'value': (', '.join(_(day) for day in chosen_days)).title() } return description