From 6ba4655cd9b89afeab05122999be3d8acfc3311b Mon Sep 17 00:00:00 2001 From: dzhuang Date: Tue, 21 Feb 2017 15:39:44 +0800 Subject: [PATCH] Fixed bad i18n literal mark. --- course/page/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/course/page/base.py b/course/page/base.py index 4139b1cd..1a2439f6 100644 --- a/course/page/base.py +++ b/course/page/base.py @@ -739,9 +739,10 @@ class PageBaseWithValue(PageBase): if vctx is not None: if hasattr(page_desc, "value") and self.is_optional_page: raise ValidationError( - location, - _("Attribute 'value' should be removed when " - "'is_optional_page' is True.")) + string_concat( + location, + _("Attribute 'value' should be removed when " + "'is_optional_page' is True."))) def allowed_attrs(self): return super(PageBaseWithValue, self).allowed_attrs() + ( -- GitLab