title: Django model form save, 'int' object has no attribute 'save'
body: <p>I have this error:</p>
  
  <blockquote>
    <p>'int' object has no attribute 'save'</p>
  </blockquote>
  
  <pre><code>class Profile(models.Model):
      user = models.ForeignKey(User)
      name = models.CharField(max_length=255)
      tel = models.CharField(max_length=255)
  </code></pre>
  
  <p>views.py:</p>
  
  <pre><code>def add_profile(request):
      user = request.user.id
      form = ProfileForm()
      if request.method == "POST":
          form = ProfileForm(request.POST)
          if form.is_valid():
              user.save()
              form.save()
              return HttpResponseRedirect('/profile/')
      return render_to_response('profile.html',{'form':form},context_instance=RequestContext(request))
  </code></pre>