title: AttributeError: 'Manager' object has no attribute 'get_by_natural_key'
body: <p>I'm using Django 1.5 on Python 3.2.3.</p>
  
  <p>When I run <code>python3 manage.py syncdb</code>, it builds the DB tables, &amp; asks for my email (defined as the unique instead of a username), and then when I enter that, I get this error --</p>
  
  <p><code>AttributeError: 'Manager' object has no attribute 'get_by_natural_key'</code></p>
  
  <p>Oddly, it creates the tables anyway, but now, I'm confused 'cause I really don't get what I'm supposed to do. The documentation says I should create a <a href="https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.models.CustomUserManager" rel="nofollow">Custom User Manager</a>, but that's all it really says. It doesn't give me a clue where to create it or how. I looked through the <a href="https://docs.djangoproject.com/en/dev/topics/db/managers/" rel="nofollow">docs on Managers</a>, but that really didn't help me figure anything out. It's all too vague. I keep Googling trying to find some clue as to what I need to do, but I'm just going crazy with more and more questions instead of any answer. Here's my models.py file:</p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import AbstractBaseUser
  
  class MyUsr(AbstractBaseUser):
      email = models.EmailField(unique=True,db_index=True)
      fname = models.CharField(max_length=255,blank=True, null=True)
      surname = models.CharField(max_length=255,blank=True, null=True)
      pwd_try_count = models.PositiveSmallIntegerField(blank=True, null=True)
      pwd_last_try = models.DateTimeField(blank=True, null=True)
      resetid = models.CharField(max_length=100,blank=True, null=True)
      last_reset = models.DateTimeField(blank=True, null=True)
      activation_code = models.CharField(max_length=100,blank=True, null=True)
      USERNAME_FIELD = 'email'
      REQUIRED_FIELDS = ['fname','activation_code']
  </code></pre>
  
  <p>How do I write a Custom User Manager? Do I put it in the MyUsr model as a method? Or is that even what I'm supposed to do? Should I be doing something totally different? I'm not sure of anything at this point. I just don't understand. The documentation on this doesn't seem clear to me, leaving a lot open for interpretation. I'm pretty new to Django, but I've  been into Python for several months.</p>