Modify data after Django form submission
<p>I'm looking for let to users the possibility to modify forms which were created in order to correct mistakes during the filling process.</p>

<p>There is some user steps (I'm blocked at the step 4) :</p>

<ul>
<li><p>1) An empty form is presented on the HTML page</p></li>
<li><p>2) Users filled the form and click on the submit button which let to 
validate data and save objects in the MySQL Database.</p></li>
<li><p>3) I display kind of resume in order to verify if all data are corrects</p></li>
<li><p>4) I would like to put a button <code>Modify</code> just below my resume. Users could modify one or several fields and update the MySQL Database. </p></li>
</ul>

<p>The problem is as following : I have not idea about the way to do that (step 4). As I'm beginning with Django, is it possible to get some advices or part of script ?</p>

<p><strong>views.py</strong> :</p>

<pre><code>def IdentityFormulary(request) :

    form = IdentityForm(request.POST or None)

    if form.is_valid() :   
        instance = form.save()
        return HttpResponseRedirect('formulaire_traite')

    context = {
        "form" : form,
        }

    return render(request, 'form_Identity.html', context)



def CompletedFormulary(request) :

   identity = Identity.objects.all().order_by("-id")[0]

   context = {
        "identity" : identity,
    }

    return render(request, 'recapitulatif_identity.html',context) 
</code></pre>

<p><strong>My HTML Template :</strong></p>

<pre><code>&lt;h2 align="center"&gt; Votre formulaire a été validé &lt;/align&gt; &lt;/h2&gt;


{% block content %} 
Votre personne porte le numéro : {{ identity.id }} 

&lt;h3&gt; Récapitulatif des données enregistrées : &lt;/h3&gt;

&lt;li&gt; Civilité : {{identity.title}}&lt;/li&gt;
&lt;li&gt; Nom : {{identity.lastname}}&lt;/li&gt;
&lt;li&gt; Prénom : {{identity.firstname}}&lt;/li&gt;
&lt;li&gt; Sexe : {{identity.sex}}&lt;/li&gt;
&lt;li&gt; Date de Naissance : {{identity.birthday}}&lt;/li&gt;
&lt;li&gt; Ville de Naissance : {{identity.birthcity}}&lt;/li&gt;
&lt;li&gt; Pays de Naissance : {{identity.birthcountry}}&lt;/li&gt;
&lt;li&gt; Nationalité : {{identity.nationality}}&lt;/li&gt;
&lt;li&gt; Profession : {{identity.job}}&lt;/li&gt;
&lt;li&gt; Adresse : {{identity.adress}}&lt;/li&gt;
&lt;li&gt; Ville : {{identity.city}}&lt;/li&gt;
&lt;li&gt; Code Postal : {{identity.zip}}&lt;/li&gt;
&lt;li&gt; Pays : {{identity.country}}&lt;/li&gt;
&lt;li&gt; Email : {{identity.mail}}&lt;/li&gt;
&lt;li&gt; Téléphone : {{identity.phone}}&lt;/li&gt;

{% endblock %} 

&lt;br&gt;&lt;/br&gt;

&lt;form method='POST' action='/Identity/accueil'&gt; {% csrf_token %}
&lt;input type ="submit" value="Retour fiche identité" /&gt;
&lt;/form&gt;

&lt;form method='POST' action='/BirthCertificate/accueil'&gt; {% csrf_token %}
&lt;input type ="submit" value="Création d'un acte de naissance" /&gt;
&lt;/form&gt;
</code></pre>

<p>I saw some functions which could correspond to my step 4 : <code>Form.cleaned_data</code> for example but I don't know How I can realize this step.</p>

<p>Thank you !</p>

<p><strong>EDIT :</strong></p>

<p>I'm reading part about something like :</p>

<pre><code>instance = form.save(commit=False)
instance.save()
</code></pre>

<p>I think that it's possible to enter data, but not save it immediately in the Database.
I'm on the right way ?</p>