Fixed incorrecty data being sent to the date_sold field in the asset_update template. Fixes last of dates not being passed around correctly

This commit is contained in:
Matthew Smith
2019-10-05 21:58:49 +01:00
parent 1c06bf3ba4
commit 3d5272d722

View File

@@ -158,7 +158,7 @@
<div class="form-group">
<label for="{{ form.date_sold.id_for_label }}">Date Sold</label>
{% with date_sol=object.form.date_sold|date:"Y-m-d" %}
{% with date_sol=object.date_sold|date:"Y-m-d" %}
{% render_field form.date_sold|add_class:'form-control'|attr:'type="date"' value=date_sol %}
{% endwith %}
</div>