fix: dont show None in textarea on issue creation

This commit is contained in:
Élie Bouttier 2014-09-06 01:00:08 -07:00
parent 6cc30ba08e
commit d58bfacf10
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="editor" style="max-height: 220px;"> <div class="tab-pane active" id="editor" style="max-height: 220px;">
<div class="form-group"> <div class="form-group">
<textarea style="width: 100%; height: 220px;" id="markdown-content" name="comment" required>{{ form.comment.value }}</textarea> <textarea style="width: 100%; height: 220px;" id="markdown-content" name="comment" required>{{ form.comment.value|default_if_none:"" }}</textarea>
</div> </div>
</div> </div>
<div class="tab-pane well" id="preview" style="min-height: 200px; magin: 0;"> <div class="tab-pane well" id="preview" style="min-height: 200px; magin: 0;">

View file

@ -26,7 +26,7 @@
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="editor" style="max-height: 220px;"> <div class="tab-pane active" id="editor" style="max-height: 220px;">
<div class="form-group"> <div class="form-group">
<textarea style="width: 100%; height: 220px;" id="markdown-content" name="description">{{ form.description.value }}</textarea> <textarea style="width: 100%; height: 220px;" id="markdown-content" name="description">{{ form.description.value|default_if_none:"" }}</textarea>
</div> </div>
</div> </div>
<div class="tab-pane well" id="preview" style="min-height: 200px; magin: 0;"> <div class="tab-pane well" id="preview" style="min-height: 200px; magin: 0;">