title: Save form as foreign key's object
body: <p>There is 2 models with a <code>ForeignKey</code> Relationship, <code>Profile</code> model and <code>Article</code> model, I would like to save the connected user as <code>profile.user</code> when an  <code>Article</code> object is created.</p>
  
  <p>Here is the error I get with the code below : </p>
  
  <blockquote>
    <p>'NoneType' object has no attribute 'user'</p>
  </blockquote>
  
  <p><strong>models.py</strong> :</p>
  
  <pre><code>class Profile(models.Model):
      name = models.CharField(max_length=120)
      user = models.OneToOneField(settings.AUTH_USER_MODEL, null=True, blank=True)
  
  class Gig(models.Model):
      profile = models.ForeignKey(Profile, null=True)
      title = models.CharField(max_length=100, unique=True)
  </code></pre>
  
  <p>Here is my <strong>view</strong> for where I want to save <code>profile.user</code></p>
  
  <pre><code>if request.method == 'POST':
      form = GigForm(request.POST, request.FILES)
  
      if form.is_valid():
          save_it = form.save()
          save_it.profile.user = request.user #error occured here.
          save_it.save()
          return redirect(reverse('own_gigs_details'))
  else:
      form = GigForm()
  </code></pre>
  
  <p><strong>Forms.py</strong> </p>
  
  <pre><code>class GigForm(forms.ModelForm):
      class Meta:
          model = Gig
          fields = ['title', 'image', 'body', 'price']
  </code></pre>
  
  <p>What am I doing wrong ?</p>