Edit a model comment Django : <p>I am stuck because I want to add a comment in my model and I do not know how to do it.</p>

<p>Can you help me please ?</p>

<p>Here is my form in forms.py:</p>

<pre><code>class UpdateActu(forms.ModelForm):
    class Meta:
        model = models.Actu
        fields = ['commentaire']
        widgets = {
            'commentaire': forms.Textarea(attrs={'class': 'form-control', 'id': 'exampleTextarea'})
        }
</code></pre>

<p>Here is my model :</p>

<pre><code>class Actu(models.Model):
    commentaire = models.TextField(max_length=200, null=True)
    region = models.CharField(max_length=30, null=True)

    def __str__(self):
        return self.region
</code></pre>

<p>And here is my view :</p>

<pre><code>def index_region(request,region):
\\I delete the other part to have better visibility
    form = UpdateActu()

    context = {
        'form': form,
    }
    return render(request, '../templates/index.html', context)
</code></pre>

<p>I know that currently, I just send my form but I do not know how to do the treatment to modify the old comment by the new one.</p>

<p>Thank you in advance.</p>
