title: Post method in Django models
body: <p>I am new in Django forms and I need to insert/update some data into my database. </p>
  
  <p>I have some model and in the django admin panel I introduce manually the user's phone and the IMEI number.
  After that I create a form, a template.html and a view.</p>
  
  <p>The form is as follows:</p>
  
  <pre><code>from django import forms
  
  class Send2phone(forms.Form):
  
      NumberOfCalls = forms.CharField(
          min_length=1,
          widget=forms.TextInput({'class': 'form-control'})
          )
  
      TimeBetweenCalls = forms.CharField(
          widget=forms.TextInput({'class': 'form-control'})
          )
  
      PSAP = forms.CharField(
          min_length=1,
          widget=forms.TextInput({'class': 'form-control'})
          )
  </code></pre>
  
  <p>And my view is: </p>
  
  <pre><code>def phone_config(request):
  
      if request.method == 'POST':
          form = Send2phone(request.POST)
          if form.is_valid():
              cleaned_data = form.cleaned_data
              NumberOfCalls = cleaned_data.get('NumberOfCalls')
              TimeBetweenCalls = cleaned_data.get('TimeBetweenCalls')
              PSAP = cleaned_data.get('PSAP')
              phone_model = Phone()
              phone_model.id = 1
              phone_model.user = donothing
              phone_model.imei = donothing
              phone_model.num_calls = NumberOfCalls
              phone_model.time_btwn_calls = TimeBetweenCalls
              phone_model.psap = PSAP
              phone_model.save()
              return redirect(reverse('gracias'))
      else:
          form = Send2phone()
      return render(request, 'heroconfigurer/heroconfigurer.html', {'form': form})
  
  
  def gracias_view(request):
      return render(request, 'heroconfigurer/gracias.html')
  </code></pre>
  
  <p>My problem comes now when I create the view. First of all, I check if the method is post and I get the data from the form.
  Then I check if the form is valid and I create the object Phone. After that assign the different parameters and save them.
  Inserting the data from the form is working good but imei and user ara being deleted if I don't specify them. </p>
  
  <p>How can I insert data in the database models where exist some users and imeis? For example in id=1 I already have a user and an imei and I want to keep them</p>