title: Return Primary Key after saving to a model in Django
body: <p>I've seen the documentation <a href="https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#auto-incrementing-primary-keys" rel="nofollow">here</a> and several similar stack Overflow posts, but after saving my form I'm still unable to return the ID/PK of that new model. It keeps telling me <code>'ProposalForm' object has no attribute 'id'</code>
  <strong>How can I return the ID right after saving?</strong></p>
  
  <p>Here's the View:</p>
  
  <pre><code>def proposal_create_view2(request):
          if request.method == 'POST':
              form = ProposalForm(data=request.POST)
              if form.is_valid():
                  form.save()
                  response = {}
                  response['proposalID'] = form.id
                  return response
  </code></pre>