mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-25 00:34:21 +03:00
parent
5128004f54
commit
9baa1fde15
|
@ -63,14 +63,14 @@ def form_for_link(link):
|
||||||
if field.required
|
if field.required
|
||||||
]
|
]
|
||||||
schema = coreschema.Object(properties=properties, required=required)
|
schema = coreschema.Object(properties=properties, required=required)
|
||||||
return coreschema.render_to_form(schema)
|
return mark_safe(coreschema.render_to_form(schema))
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def render_markdown(markdown_text):
|
def render_markdown(markdown_text):
|
||||||
if not markdown:
|
if not markdown:
|
||||||
return markdown_text
|
return markdown_text
|
||||||
return markdown.markdown(markdown_text)
|
return mark_safe(markdown.markdown(markdown_text))
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
|
|
Loading…
Reference in New Issue
Block a user