Updated authentication to support Django 1.5's custom user model
Replaced references to BaseUserManager.get(username=username) to BaseUserManager.get_by_natural_key(username)