title: Creating a user profile form in Django 1.2
body: <p>I'm trying create a basic form which will allow the user to update their firstname, lastname and email as part of the User model. I've tried the following code:</p>
  
  <pre><code>from django.forms import ModelForm
  from django.contrib.auth.models import User
  
  class BasicAccountForm(ModelForm):
      class Meta:
          model = User
          fields = ('first_name', 'last_name', 'email')
  </code></pre>
  
  <p>It's throwing the following error:</p>
  
  <pre><code>Caught AttributeError while rendering: 'User' object has no attribute 'get'
  </code></pre>
  
  <p>Could anyone tell me what I am doing wrong, or if there is a better way to do what I am trying to accomplish? </p>