title: Django adding data form multiple forms of one model to database
body: <p>I have one model Measurement, two forms MeassurementSystolicPressureForm and MeassurementDiastolicPressureForm. I want to make a view that allows user to add both of them to the database. Each has fields: username, measurement_date, value, measurement_type. When I fill forms on my webpage two records are added to the db, each has a good username and measurement_type, but measurement_date and value are the same for both records. Can you help me spotting what I'm doing wrong?</p>
  
  <p>Here is my code:</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Measurement(models.Model):
      value = models.IntegerField()
      measurement_type = models.CharField(max_length=6, default='measurement', blank=True)
      username = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
      measurement_date = models.DateTimeField(default=datetime.now, editable=True)
  </code></pre>
  
  <p><strong>forms.py</strong></p>
  
  <pre><code>class MeassurementSystolicPressureForm(ModelForm):
      class Meta:
          model = Measurement
          fields = ['value',  'measurement_date']
  
  
  class MeassurementDiastolicPressureForm(ModelForm):
      class Meta:
          model = Measurement
          fields = ['value', 'measurement_date']
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>def new_measurement(request):
      if request.method == 'POST':
          form_SP = MeassurementSystolicPressureForm(request.POST or None)
          form_DP = MeassurementDiastolicPressureForm(request.POST or None)
          if form_CS.is_valid() or form_CR.is_valid():
  
              temp_S = form_SP.save(commit=False)
              temp_S.username = request.user
              temp_S.measurement_type = 'syspres'
              temp_S.save()
  
              temp_D = form_DP.save(commit=False)
              temp_D.username = request.user
              temp_D.measurement_type = 'diapres'
              temp_D.save()
  
              return redirect('/')
      else:
          form_SP = MeassurementSystolicPressureForm()
          form_DP = MeassurementDiastolicPressureForm()
          args = {'form_SP': form_SP, 'form_DP': form_DP}
          return render(request, 'measurements.html', args)
  </code></pre>
  
  <p>If for example I submit data for:</p>
  
  <pre><code>Systolic Pressure:
  value: 120 
  date: 2019-01-15 16:15:32
  Diastolic Pressure:
  value: 80
  date: 2019-01-15 15:00:00`
  </code></pre>
  
  <p>In my database I have two records:</p>
  
  <pre><code>username: Julka, measurement_type: 
  syspres, value: 80, date: 2019-01-15 15:00:00
  username: Julka, measurement_type: diapres, value: 80, date: 2019-01-15 15:00:00
  </code></pre>
  
  <p>I have no idea what to do.</p>