title: Django can't save parent id of child objects
body: <p>I am tying to save parent id when the forms will be save  but I am not understanding where I am doing mistake. I am using  <code>&lt;input type=&quot;hidden&quot; name=&quot;parent&quot; id={{i.sno}}&gt;</code> for save parent id and I can see the id number if I inspect html from browser.</p>
  <p><strong>models.py</strong></p>
  <pre><code>class Contact(MPTTModel):
         user = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE,null=True,blank=True,related_name='contact_user')
         parent =TreeForeignKey('self', on_delete=models.CASCADE,
                              null=True, blank=True, related_name='contact_parent')
         sno = models.AutoField(primary_key=True,)
         #my others fields....
  </code></pre>
  <p><strong>forms.py</strong></p>
  <pre><code>class TicketForm(forms.ModelForm):
       class Meta:
           model = Contact
           fields = ['message','parent','sno','existing_customer','technical_service']  
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code> def SupportPageView(request):  
      if request.method == &quot;POST&quot;:
         support_form =  TicketForm(request.POST or None)
         if support_form.is_valid():
            isinstance = support_form.save(commit=False)
            isinstance.user = request.user
            isinstance.name = request.user.first_name 
            isinstance.email = request.user.email
            isinstance.save()
            name = request.user.first_name 
            messages.add_message(request, messages.INFO, f'{name} Thanks for your message. We will get back to you very soon')   
            return redirect('contact:support-ticket')
      else:
        support_form = TicketForm()
            
      user = request.user
      support_object = Contact.objects.filter(user=user)
      
  
      context = {&quot;support_form&quot;:support_form,'support_object':support_object}       
      return render(request,&quot;contact/support.html&quot;,context) 
  </code></pre>
  <p><strong>HTML</strong></p>
  <pre><code> {%for i in support_object%}
     &lt;form method=&quot;POST&quot;&gt;
                          {%csrf_token%}
                          
                          &lt;textarea name=&quot;message&quot; class=&quot;form-control&quot; style=&quot;height: 150px;&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
                          &lt;input type=&quot;hidden&quot; name=&quot;parent&quot; id={{i.sno}}&gt;
                           
                          &lt;button type=&quot;submit&quot; class=&quot;btn btn-info&quot;&gt;Submit&lt;/button&gt;
                      &lt;/form&gt;
   {%endfor%}
  </code></pre>
  <p>my forms is saving as a parent but I want they will save as child.</p>