1👍
✅
First, you need to include in your HTML form tags.
Also, you need to take care of csrf_token.
<form method="post">
{% csrf_token %}
<div class="card shadow p-2 my-2">
<div class="row">
<div class="col-md-5">
<h6 class="">Cél 1:</h6>
{{ object.goals01 }}
</div>
<div class="col-md-3">
<h6 class="">Kitűzött határidő:</h6>
{{ object.goals01_deadline }}
</div>
<div class="col-md-4">
<h6 class="">Értékelés:</h6>
{{ form.goals01_value }}
</div>
{{ form.leader_comment }}
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
Source:stackexchange.com