title: How to insert data to my DB when using another model's field in my form?
body: <p>I have two different models: Trainer and User. I'm pulling in the trainer_price field from Trainer into my form in User. Please note that I'm also not using a foreign key.</p>
  <p>The problem I'm having is that the trainer_price is not getting inserted and the default value of 0 is there, which is not what I want.</p>
  <p>The way the User form works is they fill out their name, address, email and the trainer_price is automatically populated once they selected a trainer. It's also a read-only field.</p>
  <p>Here's what I've tried so far:</p>
  <p><strong>user views.py</strong></p>
  <pre><code>def buyer(request):
      user_form = UserForm()
      trainer_listing = Trainer.objects.get(id=15).trainer_price
  
      context = {'user_form':user_form, 'trainer_listing':trainer_listing}
  
      if request.method == &quot;POST&quot;:
        user_form = UserForm(request.POST)
        if user_form.is_valid():
          user_form.save()
          return redirect(&quot;/success_page&quot;)
  
      return render(request, &quot;user/user_form.html&quot;, context)
  </code></pre>
  <p><strong>forms.py</strong></p>
  <pre><code>class UserForm(forms.ModelForm):
  
      Fullname = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'John Doe'}))
      Email = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'Email'}))
      Mobile = forms.CharField(widget=forms.TextInput(attrs={'placeholder': '312-222-2222'}))
      Address = forms.CharField(widget=forms.TextInput(attrs={'placeholder': '1234 Main St'}))
      City = forms.CharField()
      State = forms.ChoiceField(choices=STATES)
      zipcode = forms.CharField()
      trainer_price = forms.DecimalField(label=&quot;Trainer Price&quot;, required=False, widget=forms.TextInput(attrs={'readonly':'readonly'}))
  
      
      class Meta:
          model = User
          fields = ['Fullname','Email', 'Mobile', 'Address', 'City', 
                      'State', 'zipcode', 'trainer_price']
  </code></pre>
  <p>Any help in the right direction would be great!</p>