Commit 8ca31adb authored by Matthew Dizon's avatar Matthew Dizon

display datetime data when updating

parent 87efadfb
......@@ -21,7 +21,7 @@
</div>
<div class="form-group">
<label for="name"> Date Created: </label>
<input type="datetime-local" class="form-control" id="date" name="date" value="{{food.created_at}}" required>
<input type="datetime-local" class="form-control" id="date" name="date" value="{{food.created_at|date:'Y-m-d'}}T{{food.created_at|date:'H:i'}}" required>
</div>
<a href="{% url 'update_food' food.pk %}"><button type="submit" class="mt-3 btn btn-primary">Update Food</button></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment