title: Django 1.5: UserCreationForm & Custom Auth Model
body: <p>I'm using Django 1.5 &amp; Python 3.2.3.</p>
  
  <p>I've got a custom Auth setup, which uses an email address instead of a username. There's <strong>no username</strong> defined in the model at all. That works fine. Yet, when I build a user creation form, it adds in a username field anyway. So I tried defining exactly which fields I want displayed, but it's still forcing a username field into the form anyway.... <em>even tho it doesn't even exist in the custom auth model</em>. How can I make it stop doing that?</p>
  
  <p>My form for this is defined like so:</p>
  
  <pre><code>class UserCreateForm(UserCreationForm):
  
      class Meta:
          model = MyUsr
          fields = ('email','fname','surname','password1','password2',
                    'activation_code','is_active')
  </code></pre>
  
  <p>At the docs, the <a href="https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-users-and-the-built-in-auth-forms">Custom Users and Builtin Forms</a> says it "Must be re-written for any custom user model." and I think that's what I'm doing here. Neither this, nor the <a href="https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.forms.UserCreationForm">UserCreationForm documentation</a> say anything more about this though. So I don't know what I'm missing. I didn't find anything via Google either.</p>