title: AttributeError: 'UserManager' object has no attribute 'create_superuser'
body: <p>I have my customUser manager setup in this way per Django and I am still getting the attribute error.  I'm not sure what else can be wrong.</p>
  
  <pre><code>class UserManager(BaseUserManager):
      def create_user(self, email, date_of_birth, password=None):
          """
          Creates and saves a User with the given email, date of
          birth and password.
          """
          if not email:
              raise ValueError('Users must have an email address')
  
          user = self.model(
              email=self.normalize_email(email),
          )
  
          user.set_password(password)
          user.save(using=self._db)
          return user
  
      def create_superuser(self, email, date_of_birth, password):
          """
          Creates and saves a superuser with the given email, date of
          birth and password.
          """
          user = self.create_user(email,
              password=password,
              date_of_birth=date_of_birth
          )
          user.is_admin = True
          user.save(using=self._db)
          return user
  
  class User(AbstractBaseUser):
      email = models.EmailField(
          verbose_name='email address',
          max_length=255,
          unique=True,
      )
      date_of_birth = models.DateField()
      is_active = models.BooleanField(default=True)
      is_admin = models.BooleanField(default=False)
  
      objects = UserManager()
  
      USERNAME_FIELD = 'email'
  
      def get_full_name(self):
          # The user is identified by their email address
          return self.email
  
      def get_short_name(self):
          # The user is identified by their email address
          return self.email
  
      def __str__(self):              # __unicode__ on Python 2
          return self.email
  </code></pre>
  
  <p>I have defined the user and the superuser. And set the object to UserManager.</p>
  
  <p>Traceback is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 10, in &lt;module&gt; execute_from_command_line(sys.argv)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
  utility.execute()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 393, in run_from_argv
  self.execute(*args, **cmd_options)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 50, in execute
      return super(Command, self).execute(*args, **options)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 444, in execute
      output = self.handle(*args, **options)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 149, in handle
             self.UserModel._default_manager.db_manager(database).create_superuser(**user_data)
   AttributeError: 'UserManager' object has no attribute 'create_superuser'
  </code></pre>
  
  <p>The code I am running is:</p>
  
  <pre><code>python manage.py createsuperuser
  </code></pre>