templatetags: fix format string in jsonschema rendering (#39735)
This commit is contained in:
parent
d030aa30d8
commit
d58721d485
|
@ -187,9 +187,9 @@ def render_json_schema(schema):
|
|||
required_keys = schema.pop('required', [])
|
||||
additional_properties = schema.pop('additionalProperties', True)
|
||||
if unflatten:
|
||||
s += format_html(', <em class="unflatten">%s</em>', _('unflatten'))
|
||||
s += format_html(', <em class="unflatten">{}</em>', _('unflatten'))
|
||||
if merge_extra:
|
||||
s += format_html(', <em class="merge-extra">%s</em>', _('merge extra'))
|
||||
s += format_html(', <em class="merge-extra">{}</em>', _('merge extra'))
|
||||
if not additional_properties:
|
||||
s += format_html(', <em class="additional-properties-false">{}</em>', _('no additional properties'))
|
||||
if title:
|
||||
|
|
Loading…
Reference in New Issue