title: How do I extend UserCreationForm to include email field
body: <p>I managed to get the stock standard User Creation Form to work. Which included just the username, password1 and password2 field. However, when I try to include the email field it never shows up in my template. I think I'm missing something in my view perhaps. Here is my code:</p>
  
  <p><strong>forms.py</strong></p>
  
  <pre><code>from django import forms
  from django.contrib.auth.forms import UserCreationForm
  from django.contrib.auth.models import User
  
  class UserCreationForm(UserCreationForm):
      email = forms.EmailField(required=True)
  
      class Meta:
          model = User
          fields = ("username", "email", "password1", "password2")
  
      def save(self, commit=True):
          user = super(UserCreationForm, self).save(commit=False)
          user.email = self.cleaned_data["email"]
          if commit:
              user.save()
          return user
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>from django.contrib.auth.forms import UserCreationForm 
  
  def register_user(request):
  if request.method == 'POST':
      form = UserCreationForm(request.POST)
      if form.is_valid():
          form.save()
          return HttpResponseRedirect('/')
  
  args = {}
  args.update(csrf(request))
  
  args['form'] = UserCreationForm()
  
  return render_to_response('stories/register.html', args)
  </code></pre>
  
  <p><strong>register.html</strong></p>
  
  <pre><code>&lt;form action = "/register/" method = "POST"&gt; 
      {% csrf_token %} 
  
      &lt;p&gt;
      {{ form.username.label_tag }}
      {{ form.username}}
      &lt;/p&gt;
  
      &lt;p&gt; 
      {{ form.email.label_tag }}
      {{ form.email }}
      &lt;/p&gt;
  
      &lt;p&gt;
      {{ form.password1.label_tag }}
      {{ form.password1 }}
      &lt;/p&gt;
  
      &lt;p&gt;
      {{ form.password2.label_tag }}
      {{ form.password2 }}
      &lt;/p&gt;
  
      &lt;input type = "submit" value = "register" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>All of the fields in this file are being rendered into the view, <strong>Except</strong> the email field. </p>
  
  <p>Can anyone spot why?! </p>