Commit d0b453eee7526a77401282a907560a69404411b5
1 parent
ac4f129d
Exists in
master
and in
5 other branches
REsolving input date in poll [Issue: #226]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
poll/templates/poll/create.html
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 | <div class="row form-group {% if form.has_error %} has-error {% endif %}"> |
100 | 100 | <label for="{{ form.limit_date.auto_id }}">{{ form.limit_date.label }}</label> |
101 | 101 | {# {% render_field form.limit_date class="form-control" form="form"%} #} |
102 | - <input form="form" class="form-control" type="date" name="{{form.limit_date.name}}" {% if form.limit_date.value != None %}value="{% if form.limit_date.value.year %}{{form.limit_date.value|date:'Y-m-d'}}{% else %}{{form.limit_date.value}}{% endif %}"{% endif %}> | |
102 | + <input form="form" class="form-control" type="date" name="{{form.limit_date.name}}" {% if form.limit_date.value != None %}value="{{form.limit_date.value|date:'SHORT_DATE_FORMAT'}}"{% endif %}> | |
103 | 103 | {% if form.limit_date.errors %} |
104 | 104 | <div class="not_submited"> |
105 | 105 | </br> | ... | ... |