diff --git a/course/page/base.py b/course/page/base.py index 4139b1cd00e55b7cf25aae60974d4ade5d55b120..1a2439f6c1a3775d44a7c6dab633e1caf4a2bcc8 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() + (