title: Django password reset on custom user model on Django 1.5?
body: <p>I have a custom <code>User model</code> like this:</p>
  
  <pre><code>class User(AbstractBaseUser):
      username = models.CharField(max_length=90, unique=True, db_index=True)
      create_time = models.DateTimeField(null=True, blank=True)
      update_time = models.DateTimeField(null=True, blank=True)
      email = models.CharField(max_length=225)
      external = models.IntegerField(null=True, blank=True)
      deleted = models.IntegerField(null=True, blank=True)
      purged = models.IntegerField(null=True, blank=True)
      form_values_id = models.IntegerField(null=True, blank=True)
      disk_usage = models.DecimalField(null=True, max_digits=16, decimal_places=0, blank=True)
      is_superuser = models.BooleanField()
      is_staff = models.BooleanField()
      is_active = models.BooleanField()
      date_joined = models.DateTimeField()
      objects = UserManager()
      USERNAME_FIELD = 'username'
      REQUIRED_FIELDS = ['email']
      class Meta:
          db_table = u'galaxy_user'
  </code></pre>
  
  <p>I have created all the required templates for the password reset. My application name is fileupload. So when I do from this fro Django shell I get something like this:</p>
  
  <pre><code>&gt;&gt;&gt; from django.contrib.auth.models import User
  &gt;&gt;&gt; User.objects.all()
  Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 256, in __get__
      self.model._meta.object_name, self.model._meta.swapped
  AttributeError: Manager isn't available; User has been swapped for 'fileupload.user'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>How can I make Django password reset to work on my custom user model. Thanks</p>