mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 08:49:59 +00:00
Default description to "" in field renderer
Otherwise we get None on upload page
This commit is contained in:
parent
f4fb9fc065
commit
80587e02fe
|
@ -52,7 +52,7 @@
|
|||
<div role="tabpanel" class="tab-pane active" id="{{ field_name }}-tab" data-markdown-target="#{{ field_name }}-markdown-target">
|
||||
{# Render this field manually, because we need to escape the inner text #}
|
||||
<textarea class="form-control markdown-source" id="{{ field.id }}" name="{{ field.name }}">
|
||||
{{- field.data | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
|
||||
{{- (field.data or "") | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
|
||||
</textarea>
|
||||
{% if field.errors %}
|
||||
<div class="help-block">
|
||||
|
|
Loading…
Reference in a new issue