Use get_username on Django 1.5+ for custom user model compatibility:https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#django.contrib.auth.models.AbstractBaseUser.get_username